Aracılığıyla paylaş


IStorageAccountOperations.CreateAsync Method (StorageAccountCreateParameters, CancellationToken)

 

Asynchronously creates a storage account.

Namespace:   Microsoft.WindowsAzure.Management.Storage
Assembly:  Microsoft.WindowsAzure.Management.Storage (in Microsoft.WindowsAzure.Management.Storage.dll)

Syntax

Task<OperationStatusResponse> CreateAsync(
    StorageAccountCreateParameters parameters,
    CancellationToken cancellationToken
)
Task<OperationStatusResponse^>^ CreateAsync(
    StorageAccountCreateParameters^ parameters,
    CancellationToken cancellationToken
)
abstract CreateAsync : 
        parameters:StorageAccountCreateParameters *
        cancellationToken:CancellationToken -> Task<OperationStatusResponse>
Function CreateAsync (
    parameters As StorageAccountCreateParameters,
    cancellationToken As CancellationToken
) As Task(Of OperationStatusResponse)

Parameters

Return Value

Type: System.Threading.Tasks.Task<OperationStatusResponse>

The T:Microsoft.WindowsAzure.Management.Storage.Models.StorageOperationStatusResponse object that contains the status of the operation.

Remarks

If the asynchronous operation succeeds, the response includes the HTTP status code for the successful request. If the asynchronous operation failed, the response includes the HTTP status code for the failed request, and also includes error information about the failure.

For more information about creating a storage account, see the following resources:

See Also

IStorageAccountOperations Interface
Microsoft.WindowsAzure.Management.Storage Namespace

Return to top