PowerTCP Sockets for .NET
OnConnectionsChanged Method (Server)




Raises the ConnectionsChanged event.
Syntax
'Declaration
 
Protected Overridable Sub OnConnectionsChanged( _
   ByVal e As ConnectionsChangedEventArgs _
) 
'Usage
 
Dim instance As Server
Dim e As ConnectionsChangedEventArgs
 
instance.OnConnectionsChanged(e)
protected virtual void OnConnectionsChanged( 
   ConnectionsChangedEventArgs e
)
protected: virtual void OnConnectionsChanged( 
   ConnectionsChangedEventArgs* e
) 
protected:
virtual void OnConnectionsChanged( 
   ConnectionsChangedEventArgs^ e
) 

Parameters

e
Remarks

If the Synchronizing property is set, this method asynchronously invokes the ConnectionsChanged event on the UI thread. If the Synchronizing property is null, this method invokes the event on the executing thread.

This method allows derived classes to handle the event without attaching a delegate, but marshaling is not provided. This is the preferred technique for handling the event in a derived class.

Note to Inheritors: When overriding OnConnectionsChanged in a derived class, be sure to call the base class OnConnectionsChanged method, so that registered delegates receive the event.

See the SynchronizingObject property for information on updating UI controls in your event handler.

See Also

Reference

Server Class
Server Members


PowerTCP Sockets for .NET Documentation Version 4.5
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic