Enable or suspend versioning on a bucket.
![](../icons/collapse_all.gif)
C# |
public SetBucketVersioningResponse SetBucketVersioning( SetBucketVersioningRequest request )
![](../icons/collapse_all.gif)
- request (SetBucketVersioningRequest)
- The SetBucketVersioningRequest that defines the parameters of the operation.
![](../icons/collapse_all.gif)
Returns a SetBucketVersioningResponse from S3.
![](../icons/collapse_all.gif)
Once versioning has been "Enabled" on a bucket, it can be "Suspended" but cannot be switched "Off".
![](../icons/collapse_all.gif)
Exception | Condition |
---|---|
ArgumentException |
If SetBucketVersioningRequest.VersioningStatus has the value S3BucketVersioningStatus.Off
|
ArgumentNullException | |
WebException | |
AmazonS3Exception |