ComponentSpace FTP Class Library Reference

FtpClient.BeginAbort Method (Object)

Initiates an asynchronous abort that has a specified state object.

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

Parameters

stateObject
A state object, specified by the application, that contains information associated with the asynchronous operation.

Return Value

The IAsyncResult that identifies the posted asynchronous request.

Remarks

In asynchronous processing, you use BeginAbort to raise the AbortCompleted event when the abort has completed. You complete the operation by calling EndAbort.

Use this overload to associate information with the operation that will be preserved throughout the operation's lifetime. The event handler can detect this information by looking at the AsyncState of the IAsyncResult that is associated with the operation.

See Also

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