edtFTPnet/Express - Class Reference

ExFTPConnection.BeginGetFileInfos Method (String, Boolean, AsyncCallback, Object)

Begins an asynchronous request to retrieve the given directory's contents (and optionally that of its subdirectories) as an array of FTPFile objects.

public virtual IAsyncResult BeginGetFileInfos(
   string directory,
   bool includeSubdirectories,
   AsyncCallback callback,
   object state
);

Parameters

directory
Name of directory AND/OR filemask.
includeSubdirectories
Use true if subdirectories are required.
callback
The AsyncCallback delegate.
state
An object that contains state information for this request.

Return Value

An IAsyncResult that references the asynchronous get.

Remarks

You can create a callback method that implements the AsyncCallback delegate and pass its name to the BeginGetFileInfos method. The state argument may be used to pass in data that will be passed to the callback method.

For more information please refer to the synchronous version of this method, GetFileInfos.

See Also

ExFTPConnection Class | EnterpriseDT.Net.Ftp Namespace | ExFTPConnection.BeginGetFileInfos Overload List