AWS SDK for .NET Documentation
SetBucketVersioning Method (request)
AmazonAmazon.S3AmazonS3SetBucketVersioning(SetBucketVersioningRequest) Did this page help you?   Yes   No    Tell us about it...
Enable or suspend versioning on a bucket.
Declaration Syntax
Parameters
request (SetBucketVersioningRequest)
The SetBucketVersioningRequest that defines the parameters of the operation.
Return Value
Returns a SetBucketVersioningResponse from S3.
Remarks
Once versioning has been "Enabled" on a bucket, it can be "Suspended" but cannot be switched "Off".
Exceptions
ExceptionCondition
ArgumentException If SetBucketVersioningRequest.VersioningStatus has the value S3BucketVersioningStatus.Off
ArgumentNullException
WebException
AmazonS3Exception

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)