Dart.Sockets Namespace > Server Class : OnConnectionsChanged Method |
'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 )
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.