Dart.Sockets Namespace > Ping Class : OnEcho Method |
'Declaration Protected Overridable Sub OnEcho( _ ByVal e As EchoEventArgs _ )
'Usage Dim instance As Ping Dim e As EchoEventArgs instance.OnEcho(e)
protected virtual void OnEcho( EchoEventArgs e )
protected: virtual void OnEcho( EchoEventArgs* e )
protected: virtual void OnEcho( EchoEventArgs^ e )
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 OnEcho in a derived class, be sure to call the base class OnEcho method, so that registered delegates receive the event.
See the SynchronizingObject property for information on updating UI controls in your event handler.