PowerSNMP for .NET
OnError Method




A ErrorEventArgs object that contains the exception.
Raises the Error event.
Syntax
Protected Overridable Sub OnError( _
   ByVal e As ErrorEventArgs _
) 
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
) 

Parameters

e
A ErrorEventArgs object that contains the exception.
Remarks
If the Synchronizing property is set, this method invokes Error asynchronously on the UI thread. If the Synchronizing property is null, this method invokes the Error event on the executing thread.

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.

See Also

Reference

ComponentBase Class
ComponentBase Members


PowerSNMP for .NET Documentation Version 8.0
© 2024 Dart Communications. All Rights Reserved.
Send comments on this topic