CloudBlobContainer.CreateIfNotExistsAsync CloudBlobContainer.CreateIfNotExistsAsync CloudBlobContainer.CreateIfNotExistsAsync CloudBlobContainer.CreateIfNotExistsAsync Method

Definition

Overloads

CreateIfNotExistsAsync() CreateIfNotExistsAsync() CreateIfNotExistsAsync() CreateIfNotExistsAsync()

Initiates an asynchronous operation that creates the container if it does not already exist.

CreateIfNotExistsAsync(CancellationToken) CreateIfNotExistsAsync(CancellationToken) CreateIfNotExistsAsync(CancellationToken)

Initiates an asynchronous operation that creates the container if it does not already exist.

CreateIfNotExistsAsync(BlobRequestOptions, OperationContext) CreateIfNotExistsAsync(BlobRequestOptions, OperationContext) CreateIfNotExistsAsync(BlobRequestOptions, OperationContext)

Initiates an asynchronous operation that creates the container if it does not already exist.

CreateIfNotExistsAsync(BlobContainerPublicAccessType, BlobRequestOptions, OperationContext) CreateIfNotExistsAsync(BlobContainerPublicAccessType, BlobRequestOptions, OperationContext) CreateIfNotExistsAsync(BlobContainerPublicAccessType, BlobRequestOptions, OperationContext)

Initiates an asynchronous operation that creates the container if it does not already exist.

CreateIfNotExistsAsync(BlobRequestOptions, OperationContext, CancellationToken) CreateIfNotExistsAsync(BlobRequestOptions, OperationContext, CancellationToken) CreateIfNotExistsAsync(BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation that creates the container if it does not already exist.

CreateIfNotExistsAsync(BlobContainerPublicAccessType, BlobRequestOptions, OperationContext, CancellationToken) CreateIfNotExistsAsync(BlobContainerPublicAccessType, BlobRequestOptions, OperationContext, CancellationToken) CreateIfNotExistsAsync(BlobContainerPublicAccessType, BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation that creates the container if it does not already exist.

CreateIfNotExistsAsync() CreateIfNotExistsAsync() CreateIfNotExistsAsync() CreateIfNotExistsAsync()

Initiates an asynchronous operation that creates the container if it does not already exist.

public:
 virtual System::Threading::Tasks::Task<bool> ^ CreateIfNotExistsAsync();
[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<bool> CreateIfNotExistsAsync ();
abstract member CreateIfNotExistsAsync : unit -> System.Threading.Tasks.Task<bool>
override this.CreateIfNotExistsAsync : unit -> System.Threading.Tasks.Task<bool>
Public Overridable Function CreateIfNotExistsAsync () As Task(Of Boolean)
Returns

A Task<TResult> object that represents the asynchronous operation.

Remarks

This API requires Create or Write permissions.

CreateIfNotExistsAsync(CancellationToken) CreateIfNotExistsAsync(CancellationToken) CreateIfNotExistsAsync(CancellationToken)

Initiates an asynchronous operation that creates the container if it does not already exist.

public:
 virtual System::Threading::Tasks::Task<bool> ^ CreateIfNotExistsAsync(System::Threading::CancellationToken cancellationToken);
[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<bool> CreateIfNotExistsAsync (System.Threading.CancellationToken cancellationToken);
abstract member CreateIfNotExistsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.CreateIfNotExistsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Parameters
cancellationToken
CancellationToken CancellationToken CancellationToken CancellationToken

A CancellationToken to observe while waiting for a task to complete.

Returns

A Task<TResult> object that represents the asynchronous operation.

Remarks

This API requires Create or Write permissions.

CreateIfNotExistsAsync(BlobRequestOptions, OperationContext) CreateIfNotExistsAsync(BlobRequestOptions, OperationContext) CreateIfNotExistsAsync(BlobRequestOptions, OperationContext)

Initiates an asynchronous operation that creates the container if it does not already exist.

public:
 virtual System::Threading::Tasks::Task<bool> ^ CreateIfNotExistsAsync(Microsoft::WindowsAzure::Storage::Blob::BlobRequestOptions ^ options, Microsoft::WindowsAzure::Storage::OperationContext ^ operationContext);
[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<bool> CreateIfNotExistsAsync (Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions options, Microsoft.WindowsAzure.Storage.OperationContext operationContext);
abstract member CreateIfNotExistsAsync : Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> System.Threading.Tasks.Task<bool>
override this.CreateIfNotExistsAsync : Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> System.Threading.Tasks.Task<bool>
Parameters
options
BlobRequestOptions BlobRequestOptions BlobRequestOptions BlobRequestOptions

A BlobRequestOptions object that specifies additional options for the request.

operationContext
OperationContext OperationContext OperationContext OperationContext

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

Returns

A Task<TResult> object that represents the asynchronous operation.

Remarks

This API requires Create or Write permissions.

CreateIfNotExistsAsync(BlobContainerPublicAccessType, BlobRequestOptions, OperationContext) CreateIfNotExistsAsync(BlobContainerPublicAccessType, BlobRequestOptions, OperationContext) CreateIfNotExistsAsync(BlobContainerPublicAccessType, BlobRequestOptions, OperationContext)

Initiates an asynchronous operation that creates the container if it does not already exist.

public:
 virtual System::Threading::Tasks::Task<bool> ^ CreateIfNotExistsAsync(Microsoft::WindowsAzure::Storage::Blob::BlobContainerPublicAccessType accessType, Microsoft::WindowsAzure::Storage::Blob::BlobRequestOptions ^ options, Microsoft::WindowsAzure::Storage::OperationContext ^ operationContext);
[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<bool> CreateIfNotExistsAsync (Microsoft.WindowsAzure.Storage.Blob.BlobContainerPublicAccessType accessType, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions options, Microsoft.WindowsAzure.Storage.OperationContext operationContext);
abstract member CreateIfNotExistsAsync : Microsoft.WindowsAzure.Storage.Blob.BlobContainerPublicAccessType * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> System.Threading.Tasks.Task<bool>
override this.CreateIfNotExistsAsync : Microsoft.WindowsAzure.Storage.Blob.BlobContainerPublicAccessType * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> System.Threading.Tasks.Task<bool>
Parameters
accessType
BlobContainerPublicAccessType BlobContainerPublicAccessType BlobContainerPublicAccessType BlobContainerPublicAccessType

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

options
BlobRequestOptions BlobRequestOptions BlobRequestOptions BlobRequestOptions

A BlobRequestOptions object that specifies additional options for the request.

operationContext
OperationContext OperationContext OperationContext OperationContext

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

Returns

A Task<TResult> object that represents the asynchronous operation.

Remarks

This API requires Create or Write permissions.

CreateIfNotExistsAsync(BlobRequestOptions, OperationContext, CancellationToken) CreateIfNotExistsAsync(BlobRequestOptions, OperationContext, CancellationToken) CreateIfNotExistsAsync(BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation that creates the container if it does not already exist.

public:
 virtual System::Threading::Tasks::Task<bool> ^ CreateIfNotExistsAsync(Microsoft::WindowsAzure::Storage::Blob::BlobRequestOptions ^ options, Microsoft::WindowsAzure::Storage::OperationContext ^ operationContext, System::Threading::CancellationToken cancellationToken);
[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<bool> CreateIfNotExistsAsync (Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions options, Microsoft.WindowsAzure.Storage.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
abstract member CreateIfNotExistsAsync : Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.CreateIfNotExistsAsync : Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Parameters
options
BlobRequestOptions BlobRequestOptions BlobRequestOptions BlobRequestOptions

A BlobRequestOptions object that specifies additional options for the request.

operationContext
OperationContext OperationContext OperationContext OperationContext

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

cancellationToken
CancellationToken CancellationToken CancellationToken CancellationToken

A CancellationToken to observe while waiting for a task to complete.

Returns

A Task<TResult> object that represents the asynchronous operation.

Remarks

This API requires Create or Write permissions.

CreateIfNotExistsAsync(BlobContainerPublicAccessType, BlobRequestOptions, OperationContext, CancellationToken) CreateIfNotExistsAsync(BlobContainerPublicAccessType, BlobRequestOptions, OperationContext, CancellationToken) CreateIfNotExistsAsync(BlobContainerPublicAccessType, BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation that creates the container if it does not already exist.

public:
 virtual System::Threading::Tasks::Task<bool> ^ CreateIfNotExistsAsync(Microsoft::WindowsAzure::Storage::Blob::BlobContainerPublicAccessType accessType, Microsoft::WindowsAzure::Storage::Blob::BlobRequestOptions ^ options, Microsoft::WindowsAzure::Storage::OperationContext ^ operationContext, System::Threading::CancellationToken cancellationToken);
[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<bool> CreateIfNotExistsAsync (Microsoft.WindowsAzure.Storage.Blob.BlobContainerPublicAccessType accessType, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions options, Microsoft.WindowsAzure.Storage.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
abstract member CreateIfNotExistsAsync : Microsoft.WindowsAzure.Storage.Blob.BlobContainerPublicAccessType * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.CreateIfNotExistsAsync : Microsoft.WindowsAzure.Storage.Blob.BlobContainerPublicAccessType * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Parameters
accessType
BlobContainerPublicAccessType BlobContainerPublicAccessType BlobContainerPublicAccessType BlobContainerPublicAccessType

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

options
BlobRequestOptions BlobRequestOptions BlobRequestOptions BlobRequestOptions

A BlobRequestOptions object that specifies additional options for the request.

operationContext
OperationContext OperationContext OperationContext OperationContext

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

cancellationToken
CancellationToken CancellationToken CancellationToken CancellationToken

A CancellationToken to observe while waiting for a task to complete.

Returns

A Task<TResult> object that represents the asynchronous operation.

Remarks

This API requires Create or Write permissions.

Applies to