Dart.Ssh Namespace > SshConnection Class : OnLog Method |
'Declaration Protected Overridable Sub OnLog( _ ByVal e As LogEventArgs _ )
'Usage Dim instance As SshConnection Dim e As LogEventArgs instance.OnLog(e)
protected virtual void OnLog( LogEventArgs e )
protected: virtual void OnLog( LogEventArgs* e )
protected: virtual void OnLog( LogEventArgs^ e )
The OnLog method allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Note to Inheritors: When overriding OnLog in a derived class, be sure to call the base class OnLog method, so that registered delegates receive the event.
See the SynchronizingObject property for important information on updating UI controls from within derived classes and events.