ComponentSpace FTP Class Library Reference

FtpClient.BeginGetRemoteStatus Method (Object, AsyncCallback)

Initiates an asynchronous get remote status 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 BeginGetRemoteStatus( _
   ByVal stateObject As Object, _
   ByVal asyncCallback As AsyncCallback _
) As IAsyncResult
[C#]
public IAsyncResult BeginGetRemoteStatus(
   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 get remote status has completed; the GetRemoteStatusCompleted event is not raised. The other overloads of BeginGetRemoteStatus rely on this component to raise the GetRemoteStatusCompleted event.

See Also

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