Begins the process of sending the files that match the provided file mask to the FTP server's current working folder. Don't forget to call
EndSendMultipleFiles!
'Declaration
Public Function BeginSendMultipleFiles( _
ByVal As String, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal As AsyncCallback, _
ByVal As Object _
) As IAsyncResult
'Usage
Dim instance As AsyncFtpClient
Dim localFileMask As String
Dim recursive As Boolean
Dim recreateFolderStructure As Boolean
Dim callback As AsyncCallback
Dim state As Object
Dim value As IAsyncResult
value = instance.BeginSendMultipleFiles(localFileMask, recursive, recreateFolderStructure, callback, state)
public IAsyncResult BeginSendMultipleFiles(
string ,
bool ,
bool ,
AsyncCallback ,
object
)
Parameters
- localFileMask
- The full path and file mask of the local files to send. This parameter can include a filtering mask to limit the files that are sent. For example, if "c:\temp\*" is specified, the entire contents of the "c:\temp" will be sent. If "c:\temp\*.txt" is used, all the files in the "c:\temp" folder that have the TXT extension will be sent. The "temp" folder will not be recreated on the FTP server.
- recursive
- true if the files in child folders should also be sent; false otherwise.
- recreateFolderStructure
- true if the local directory structure should be recreated on the FTP server; 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