Partager via


IStorageBlobManagement.CreateContainerIfNotExistsAsync Method

Definition

Overloads

CreateContainerIfNotExistsAsync(CloudBlobContainer, BlobContainerPublicAccessType, BlobRequestOptions, OperationContext, CancellationToken)

Return a task that asynchronously create a container if it doesn't exist.

CreateContainerIfNotExistsAsync(CloudBlobContainer, BlobContainerPublicAccessType, BlobRequestOptions, OperationContext, CancellationToken)

CreateContainerIfNotExistsAsync(CloudBlobContainer, BlobContainerPublicAccessType, BlobRequestOptions, OperationContext, CancellationToken)

Return a task that asynchronously create a container if it doesn't exist.

public System.Threading.Tasks.Task<bool> CreateContainerIfNotExistsAsync (Microsoft.Azure.Storage.Blob.CloudBlobContainer container, Microsoft.Azure.Storage.Blob.BlobContainerPublicAccessType accessType, Microsoft.Azure.Storage.Blob.BlobRequestOptions requestOptions, Microsoft.Azure.Storage.OperationContext operationContext, System.Threading.CancellationToken cmdletCancellationToken);
abstract member CreateContainerIfNotExistsAsync : Microsoft.Azure.Storage.Blob.CloudBlobContainer * Microsoft.Azure.Storage.Blob.BlobContainerPublicAccessType * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function CreateContainerIfNotExistsAsync (container As CloudBlobContainer, accessType As BlobContainerPublicAccessType, requestOptions As BlobRequestOptions, operationContext As OperationContext, cmdletCancellationToken As CancellationToken) As Task(Of Boolean)

Parameters

container
CloudBlobContainer

CloudBlobContainer object

accessType
BlobContainerPublicAccessType

Blob container public access type

requestOptions
BlobRequestOptions

Blob request options

operationContext
OperationContext

Operation context

cmdletCancellationToken
CancellationToken

Cancellation token

Returns

Return a task that asynchronously create a container if it doesn't exist.

Applies to

CreateContainerIfNotExistsAsync(CloudBlobContainer, BlobContainerPublicAccessType, BlobRequestOptions, OperationContext, CancellationToken)

public System.Threading.Tasks.Task<bool> CreateContainerIfNotExistsAsync (Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer container, Microsoft.WindowsAzure.Storage.Blob.BlobContainerPublicAccessType accessType, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions requestOptions, Microsoft.WindowsAzure.Storage.OperationContext operationContext, System.Threading.CancellationToken cmdletCancellationToken);
abstract member CreateContainerIfNotExistsAsync : Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer * Microsoft.WindowsAzure.Storage.Blob.BlobContainerPublicAccessType * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function CreateContainerIfNotExistsAsync (container As CloudBlobContainer, accessType As BlobContainerPublicAccessType, requestOptions As BlobRequestOptions, operationContext As OperationContext, cmdletCancellationToken As CancellationToken) As Task(Of Boolean)

Parameters

container
CloudBlobContainer
requestOptions
BlobRequestOptions
operationContext
OperationContext
cmdletCancellationToken
CancellationToken

Returns

Applies to