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