ComponentSpace FTP Class Library Reference

FtpClient.BeginGetRemoteStatus Method (Object)

Initiates an asynchronous get remote status that has a specified state object.

[Visual Basic]
Overloads Public Function BeginGetRemoteStatus( _
   ByVal stateObject As Object _
) As IAsyncResult
[C#]
public IAsyncResult BeginGetRemoteStatus(
   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 BeginGetRemoteStatus to raise the GetRemoteStatusCompleted event when the get remote status has completed. You complete the operation by calling EndGetRemoteStatus.

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.BeginGetRemoteStatus Overload List