PowerTCP FTP 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
) 

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


PowerTCP FTP for .NET Documentation Version 6.1
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic