Dart.Snmp Namespace > SnmpBase Class : OnLog Method |
Protected Overridable Sub OnLog( _ ByVal e As LogEventArgs _ )
Dim instance As SnmpBase 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, but marshaling is not provided. This is the preferred technique for handling the event in a derived class.
Note to Inheritors: When overriding this method 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 information on updating UI controls in your event handler.