Initiates the asynchronous execution of the PutBucketPolicy operation.
Declaration Syntax
C# |
public IAsyncResult BeginPutBucketPolicy( PutBucketPolicyRequest request, AsyncCallback callback, Object state )
Parameters
- request (PutBucketPolicyRequest)
- The PutBucketPolicyRequest that defines the parameters of the operation.
- 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 value is also needed when invoking EndPutBucketPolicy.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | |
WebException | |
AmazonS3Exception |
See Also
PutBucketPolicy()()()()