StorageBlobManagement.CreateContainerIfNotExists Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateContainerIfNotExists(CloudBlobContainer, BlobRequestOptions, OperationContext)
Create the container if not exists
public bool CreateContainerIfNotExists (Microsoft.Azure.Storage.Blob.CloudBlobContainer container, Microsoft.Azure.Storage.Blob.BlobRequestOptions requestOptions, Microsoft.Azure.Storage.OperationContext operationContext);
abstract member CreateContainerIfNotExists : Microsoft.Azure.Storage.Blob.CloudBlobContainer * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> bool
override this.CreateContainerIfNotExists : Microsoft.Azure.Storage.Blob.CloudBlobContainer * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> bool
Public Function CreateContainerIfNotExists (container As CloudBlobContainer, requestOptions As BlobRequestOptions, operationContext As OperationContext) As Boolean
Parameters
- container
- CloudBlobContainer
A CloudBlobContainer object
- requestOptions
- BlobRequestOptions
Blob request options
- operationContext
- OperationContext
Operation context
Returns
True if the container did not already exist and was created; otherwise false.
Implements
Applies to
CreateContainerIfNotExists(CloudBlobContainer, BlobRequestOptions, OperationContext)
public bool CreateContainerIfNotExists (Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer container, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions requestOptions, Microsoft.WindowsAzure.Storage.OperationContext operationContext);
abstract member CreateContainerIfNotExists : Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> bool
override this.CreateContainerIfNotExists : Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> bool
Public Function CreateContainerIfNotExists (container As CloudBlobContainer, requestOptions As BlobRequestOptions, operationContext As OperationContext) As Boolean
Parameters
- container
- CloudBlobContainer
- requestOptions
- BlobRequestOptions
- operationContext
- OperationContext