ComponentSpace FTP Class Library Reference

FtpClient.BeginSendSiteCommand Method (String, Object)

Initiates an asynchronous site command that has a specified state object.

[Visual Basic]
Overloads Public Function BeginSendSiteCommand( _
   ByVal arguments As String, _
   ByVal stateObject As Object _
) As IAsyncResult
[C#]
public IAsyncResult BeginSendSiteCommand(
   string arguments,
   object stateObject
);

Parameters

arguments
The site command arguments.
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 BeginSendSiteCommand to raise the SiteCommandCompleted event when the site command has completed. You complete the operation by calling EndSendSiteCommand.

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