| CloudBlobContainer.CreateAsync Method (BlobContainerPublicAccessType, BlobRequestOptions, OperationContext) |
| See Also |
|
Creates the container and specifies the level of access to the container's data.
Namespace: Microsoft.WindowsAzure.Storage.Blob
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Usage
| Visual Basic |
|---|
Dim instance As CloudBlobContainer Dim accessType As BlobContainerPublicAccessType Dim options As BlobRequestOptions Dim operationContext As OperationContext Dim returnValue As IAsyncAction returnValue = instance.CreateAsync(accessType, options, operationContext) |
Syntax
| Visual Basic |
|---|
Public Function CreateAsync ( _ accessType As BlobContainerPublicAccessType, _ options As BlobRequestOptions, _ operationContext As OperationContext _ ) As IAsyncAction |
| C# |
|---|
public IAsyncAction CreateAsync ( BlobContainerPublicAccessType accessType, BlobRequestOptions options, OperationContext operationContext ) |
| C++ |
|---|
public: IAsyncAction^ CreateAsync ( BlobContainerPublicAccessType accessType, BlobRequestOptions^ options, OperationContext^ operationContext ) |
| J# |
|---|
public IAsyncAction CreateAsync ( BlobContainerPublicAccessType accessType, BlobRequestOptions options, OperationContext operationContext ) |
| JScript |
|---|
public function CreateAsync ( accessType : BlobContainerPublicAccessType, options : BlobRequestOptions, operationContext : OperationContext ) : IAsyncAction |
Parameters
- accessType
An BlobContainerPublicAccessType object that specifies whether data in the container may be accessed publicly and what level of access is to be allowed.
- options
A BlobRequestOptions object that specifies additional options for the request.
- operationContext
An OperationContext object that represents the context for the current operation.
Return Value
An IAsyncAction that represents an asynchronous action.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.