Rebex FTP for .NET

Ftp.BeginGetFileLength Method 

Returns the size of the specified remote file.

public IAsyncResult BeginGetFileLength(
   string remotePath,
   AsyncCallback callback,
   object state
);

Parameters

remotePath
The path of the remote file. This cannot be a directory.
callback
An optional asynchronous callback to be called when the operation is complete.
state
A user-provided object that identifies this particular asynchronous operation.

Return Value

An IAsyncResult that references the asynchronous operation.

Remarks

Represents FTP SIZE command.

The SIZE command was not defined in the original RFC, but it has been widely supported for a number of years.

See Also

Ftp Class | Rebex.Net Namespace