Initiates the asynchronous execution of the OpenStream operation.
Declaration Syntax
C# |
public IAsyncResult BeginOpenStream( string bucketName, string key, AsyncCallback callback, Object state )
Parameters
- bucketName (String)
- The name of the bucket.
- key (String)
- The object key.
- 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 EndOpenStream.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | |
WebException | |
AmazonS3Exception |
See Also
Upload()()()()