Verastream SDK .Net Reference
removeIScreenListenerEx Method
Example 



For .NET based languages, pass null in for inListener parameter. For Visual Basic or MFC based languages pass in a dispatch pointer to listener receiving events.
Removes the ScreenListener from the Screen object. The Screen object will no longer receive screen/status event notifications.
Syntax
'Declaration
 
Public Sub removeIScreenListenerEx( _
   ByVal inListener As ScreenUPG _
) 
'Usage
 
Dim instance As ScreenUPG
Dim inListener As ScreenUPG
 
instance.removeIScreenListenerEx(inListener)
public void removeIScreenListenerEx( 
   ScreenUPG inListener
)
public:
void removeIScreenListenerEx( 
   ScreenUPG^ inListener
) 

Parameters

inListener
For .NET based languages, pass null in for inListener parameter. For Visual Basic or MFC based languages pass in a dispatch pointer to listener receiving events.
Example
[C#] [VB]
// Notify screen object that we'd no longer like to receive events
screen.removeIScreenListenerEx(null);
            
// Remove delegates
ScreenUPG.ScreenUPG.onConnectionLostHandler -= instance.myConnectionLostHandler;
ScreenUPG.ScreenUPG.onScreenChangedHandler -= instance.myScreenChangedHandler;
ScreenUPG.ScreenUPG.onScreenShapeChangedHandler -= instance.myScreenShapeChangedHandler;
ScreenUPG.ScreenUPG.onLostRemoteWindowHandler -= instance.myLostRemoteWindowHandler;
ScreenUPG.ScreenUPG.onErrorHandler -= instance.myErrorHandler;
screen.removeIScreenListenerEx screen
End Sub
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also