Begins the process of retreiving the files that match the provided file mask from the current working folder and stores them on the local system in the specified folder. Don't forget to call
EndReceiveMultipleFiles!
'Declaration
Public Function BeginReceiveMultipleFiles( _
ByVal As String, _
ByVal As String, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal As AsyncCallback, _
ByVal As Object _
) As IAsyncResult
'Usage
Dim instance As AsyncFtpClient
Dim remoteFileMask As String
Dim localFolder As String
Dim recursive As Boolean
Dim recreateFolderStructure As Boolean
Dim callback As AsyncCallback
Dim state As Object
Dim value As IAsyncResult
value = instance.BeginReceiveMultipleFiles(remoteFileMask, localFolder, recursive, recreateFolderStructure, callback, state)
public IAsyncResult BeginReceiveMultipleFiles(
string ,
string ,
bool ,
bool ,
AsyncCallback ,
object
)
Parameters
- remoteFileMask
- The file mask of the remote files to receive. This parameter can include a filtering mask to limit the files that are received. For example, if System.String.Empty is specified, the entire contents of the current working folder will be received. If "*.txt" is used, all the files in the current working folder that have the TXT extension will be received. Some FTP servers may be case-sensitive!
- localFolder
- The path and name of the local folder where the files will be stored.
- recursive
- true if the files in child folders should also be received; false otherwise.
- recreateFolderStructure
- true if the remote directory structure should be recreated on the local machine; false otherwise.
- callback
- Callback method to be called when the asynchronous operation is completed.
- state
- An object containing state information for this operation.
Return Value
An
System.IAsyncResult representing the status of the asynchronous operation.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2