CloudBlobContainer.CreateIfNotExists Method

Definition

Overloads

CreateIfNotExists(BlobContainerPublicAccessType, BlobContainerEncryptionScopeOptions, BlobRequestOptions, OperationContext)

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

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)

Creates the container if it does not already exist.

CreateIfNotExists(BlobContainerPublicAccessType, BlobContainerEncryptionScopeOptions, BlobRequestOptions, OperationContext)

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

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual bool CreateIfNotExists (Microsoft.Azure.Storage.Blob.BlobContainerPublicAccessType accessType, Microsoft.Azure.Storage.Blob.BlobContainerEncryptionScopeOptions encryptionScopeOptions, Microsoft.Azure.Storage.Blob.BlobRequestOptions requestOptions = default, Microsoft.Azure.Storage.OperationContext operationContext = default);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member CreateIfNotExists : Microsoft.Azure.Storage.Blob.BlobContainerPublicAccessType * Microsoft.Azure.Storage.Blob.BlobContainerEncryptionScopeOptions * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> bool
override this.CreateIfNotExists : Microsoft.Azure.Storage.Blob.BlobContainerPublicAccessType * Microsoft.Azure.Storage.Blob.BlobContainerEncryptionScopeOptions * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> bool
Public Overridable Function CreateIfNotExists (accessType As BlobContainerPublicAccessType, encryptionScopeOptions As BlobContainerEncryptionScopeOptions, Optional requestOptions As BlobRequestOptions = Nothing, Optional operationContext As OperationContext = Nothing) As Boolean

Parameters

accessType
BlobContainerPublicAccessType

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

encryptionScopeOptions
BlobContainerEncryptionScopeOptions

An BlobContainerEncryptionScopeOptions object that specifies encryption scope options to set for this container.

requestOptions
BlobRequestOptions

A BlobRequestOptions object that specifies additional options for the request.

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.

Attributes

Remarks

This API requires Create or Write permissions.

Applies to

CreateIfNotExists(BlobContainerPublicAccessType, BlobRequestOptions, OperationContext)

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

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual bool CreateIfNotExists (Microsoft.Azure.Storage.Blob.BlobContainerPublicAccessType accessType, Microsoft.Azure.Storage.Blob.BlobRequestOptions requestOptions = default, Microsoft.Azure.Storage.OperationContext operationContext = default);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member CreateIfNotExists : Microsoft.Azure.Storage.Blob.BlobContainerPublicAccessType * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> bool
override this.CreateIfNotExists : Microsoft.Azure.Storage.Blob.BlobContainerPublicAccessType * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> bool
Public Overridable Function CreateIfNotExists (accessType As BlobContainerPublicAccessType, Optional requestOptions As BlobRequestOptions = Nothing, Optional operationContext As OperationContext = Nothing) As Boolean

Parameters

accessType
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

A BlobRequestOptions object that specifies additional options for the request.

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.

Attributes

Remarks

This API requires Create or Write permissions.

Applies to

CreateIfNotExists(BlobRequestOptions, OperationContext)

Creates the container if it does not already exist.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual bool CreateIfNotExists (Microsoft.Azure.Storage.Blob.BlobRequestOptions requestOptions = default, Microsoft.Azure.Storage.OperationContext operationContext = default);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member CreateIfNotExists : Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> bool
override this.CreateIfNotExists : Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> bool
Public Overridable Function CreateIfNotExists (Optional requestOptions As BlobRequestOptions = Nothing, Optional operationContext As OperationContext = Nothing) As Boolean

Parameters

requestOptions
BlobRequestOptions

A BlobRequestOptions object that specifies additional options for the request.

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.

Attributes

Remarks

This API requires Create or Write permissions.

Applies to