Initiates the asynchronous execution of the DownloadDirectory operation.
Declaration Syntax
C# |
public IAsyncResult BeginDownloadDirectory( string bucketName, string s3Directory, string localDirectory, AsyncCallback callback, Object state )
Parameters
- bucketName (String)
- The name of the bucket containing the Amazon S3 objects to download.
- s3Directory (String)
- The directory in Amazon S3 to download.
- localDirectory (String)
- The local directory to download the objects to.
- callback (AsyncCallback)
- An AsyncCallback delegate that is invoked when the operation completes.
- state (Object)
- A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback procedure using the AsyncState property.
Return Value
An IAsyncResult that can be used to poll, or wait for results, or both.
This values is also needed when invoking EndDownloadDirectory.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | |
WebException | |
AmazonS3Exception |
See Also
DownloadDirectory()()()()