CloudBlobContainer.createIfNotExists Method

Definition

Overloads

createIfNotExists()

Creates the container if it does not exist.

createIfNotExists(BlobContainerPublicAccessType accessType, BlobRequestOptions options, OperationContext opContext)

Creates the container if it does not exist, using the specified request options and operation context.

createIfNotExists(BlobRequestOptions options, OperationContext opContext)

Creates the container if it does not exist, using the specified request options and operation context.

createIfNotExists()

Creates the container if it does not exist.

public boolean createIfNotExists()
Returns
boolean

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

Exceptions

If a storage service error occurred.

createIfNotExists(BlobContainerPublicAccessType accessType, BlobRequestOptions options, OperationContext opContext)

Creates the container if it does not exist, using the specified request options and operation context.

public boolean createIfNotExists(BlobContainerPublicAccessType accessType, BlobRequestOptions options, OperationContext opContext)
Parameters
accessType
BlobContainerPublicAccessType

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

options
BlobRequestOptions

A BlobRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client (CloudBlobClient).

opContext
OperationContext

An OperationContext object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Returns
boolean

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

Exceptions

If a storage service error occurred.

createIfNotExists(BlobRequestOptions options, OperationContext opContext)

Creates the container if it does not exist, using the specified request options and operation context.

public boolean createIfNotExists(BlobRequestOptions options, OperationContext opContext)
Parameters
options
BlobRequestOptions

A BlobRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client (CloudBlobClient).

opContext
OperationContext

An OperationContext object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Returns
boolean

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

Exceptions

If a storage service error occurred.