ComponentSpace FTP Class Library Reference

FtpClient.BeginSendSiteCommand Method (String, Object, AsyncCallback)

Initiates an asynchronous site command 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 BeginSendSiteCommand( _
   ByVal arguments As String, _
   ByVal stateObject As Object, _
   ByVal asyncCallback As AsyncCallback _
) As IAsyncResult
[C#]
public IAsyncResult BeginSendSiteCommand(
   string arguments,
   object stateObject,
   AsyncCallback asyncCallback
);

Parameters

arguments
The site command arguments.
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 site command has completed; the SiteCommandCompleted event is not raised. The other overloads of BeginSendSiteCommand rely on this component to raise the SiteCommandCompleted event.

See Also

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