CloudBlobContainer.CreateIfNotExists CloudBlobContainer.CreateIfNotExists CloudBlobContainer.CreateIfNotExists Method

Definition

Overloads

CreateIfNotExists(BlobContainerPublicAccessType, BlobRequestOptions, OperationContext) CreateIfNotExists(BlobContainerPublicAccessType, BlobRequestOptions, OperationContext) CreateIfNotExists(BlobContainerPublicAccessType, BlobRequestOptions, OperationContext)

Creates the container if it does not already exist and specifies whether the container or its blobs are publicly accessible.

CreateIfNotExists(BlobRequestOptions, OperationContext) CreateIfNotExists(BlobRequestOptions, OperationContext) CreateIfNotExists(BlobRequestOptions, OperationContext)

Creates the container if it does not already exist.

CreateIfNotExists(BlobContainerPublicAccessType, BlobRequestOptions, OperationContext) CreateIfNotExists(BlobContainerPublicAccessType, BlobRequestOptions, OperationContext) CreateIfNotExists(BlobContainerPublicAccessType, BlobRequestOptions, OperationContext)

Creates the container if it does not already exist and specifies whether the container or its blobs are publicly accessible.

 virtual bool CreateIfNotExists(Microsoft::WindowsAzure::Storage::Blob::BlobContainerPublicAccessType accessType, Microsoft::WindowsAzure::Storage::Blob::BlobRequestOptions const & requestOptions = null, Microsoft::WindowsAzure::Storage::OperationContext const & operationContext = null);
[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual bool CreateIfNotExists (Microsoft.WindowsAzure.Storage.Blob.BlobContainerPublicAccessType accessType, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions requestOptions = null, Microsoft.WindowsAzure.Storage.OperationContext operationContext = null);
abstract member CreateIfNotExists : Microsoft.WindowsAzure.Storage.Blob.BlobContainerPublicAccessType * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> bool
override this.CreateIfNotExists : Microsoft.WindowsAzure.Storage.Blob.BlobContainerPublicAccessType * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> bool
Parameters
accessType
BlobContainerPublicAccessType BlobContainerPublicAccessType BlobContainerPublicAccessType

An BlobContainerPublicAccessType object that specifies whether data in the container may be accessed publicly and what level of access is to be allowed.

requestOptions
BlobRequestOptions BlobRequestOptions BlobRequestOptions

A BlobRequestOptions object that specifies additional options for the request.

operationContext
OperationContext OperationContext OperationContext

An OperationContext object that represents the context for the current operation.

Returns

true if the container did not already exist and was created; otherwise false.

Remarks

This API requires Create or Write permissions.

CreateIfNotExists(BlobRequestOptions, OperationContext) CreateIfNotExists(BlobRequestOptions, OperationContext) CreateIfNotExists(BlobRequestOptions, OperationContext)

Creates the container if it does not already exist.

 virtual bool CreateIfNotExists(Microsoft::WindowsAzure::Storage::Blob::BlobRequestOptions const & requestOptions = null, Microsoft::WindowsAzure::Storage::OperationContext const & operationContext = null);
[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual bool CreateIfNotExists (Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions requestOptions = null, Microsoft.WindowsAzure.Storage.OperationContext operationContext = null);
abstract member CreateIfNotExists : Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> bool
override this.CreateIfNotExists : Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> bool
Parameters
requestOptions
BlobRequestOptions BlobRequestOptions BlobRequestOptions

A BlobRequestOptions object that specifies additional options for the request.

operationContext
OperationContext OperationContext OperationContext

An OperationContext object that represents the context for the current operation.

Returns

true if the container did not already exist and was created; otherwise false.

Remarks

This API requires Create or Write permissions.

Applies to