VersioningEnabled Property

Controls whether versioning is enabled for the currently selected bucket.

Syntax

ANSI (Cross Platform)
int GetVersioningEnabled();
int SetVersioningEnabled(int bVersioningEnabled); Unicode (Windows) BOOL GetVersioningEnabled();
INT SetVersioningEnabled(BOOL bVersioningEnabled);
@property (nonatomic,readwrite,assign,getter=versioningEnabled,setter=setVersioningEnabled:) BOOL versioningEnabled;
- (BOOL)versioningEnabled;
- (void)setVersioningEnabled:(BOOL)newVersioningEnabled;
#define PID_S3CLIENT_VERSIONINGENABLED 82

IPWORKSS3_EXTERNAL void* IPWORKSS3_CALL IPWorksS3_S3Client_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSS3_EXTERNAL int IPWORKSS3_CALL IPWorksS3_S3Client_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

FALSE

Remarks

This property can be used to query and control whether the bucket currently selected by Bucket has versioning enabled.

Note that if Bucket is empty, or refers to a bucket that does not exist, this property will always return false when queried, and any attempts to set it will fail. This behavior also occurs if the currently-selected service provider does not support versioning at all.

Refer to Amazon's Versioning documentation for more information about versioning.

Note: When ServiceProvider is spBackblazeB2 (4), this property will always return true (assuming Bucket is non-empty), and any attempt to change it will fail; Backblaze B2 buckets are always versioned.

This property is not available at design time.

Data Type

Boolean

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks S3 2020 C++ Edition - Version 20.0 [Build 8164]