ComponentSpace FTP Class Library Reference

FtpClient.BeginAbort Method (Object, AsyncCallback)

Initiates an asynchronous abort that has a specified state object. This overload receives notification, through a callback, of the identity of the event handler for this operation.

[Visual Basic]
Overloads Public Function BeginAbort( _
   ByVal stateObject As Object, _
   ByVal asyncCallback As AsyncCallback _
) As IAsyncResult
[C#]
public IAsyncResult BeginAbort(
   object stateObject,
   AsyncCallback asyncCallback
);

Parameters

stateObject
A state object, specified by the application, that contains information associated with the asynchronous operation.
asyncCallback
The AsyncCallback that will receive the notification of the asynchronous operation completion.

Return Value

The IAsyncResult that identifies the posted asynchronous request.

Remarks

When you use this overload, the callback specified in the callback parameter is invoked directly when the abort has completed; the AbortCompleted event is not raised. The other overloads of BeginAbort rely on this component to raise the AbortCompleted event.

See Also

FtpClient Class | ComponentSpace.Ftp Namespace | FtpClient.BeginAbort Overload List