Aracılığıyla paylaş


IStorageAccountOperations.GetKeysAsync Method (String, CancellationToken)

 

Asynchronously retrieves the primary and secondary access keys for a storage account.

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

Syntax

Task<StorageAccountGetKeysResponse> GetKeysAsync(
    string accountName,
    CancellationToken cancellationToken
)
Task<StorageAccountGetKeysResponse^>^ GetKeysAsync(
    String^ accountName,
    CancellationToken cancellationToken
)
abstract GetKeysAsync : 
        accountName:string *
        cancellationToken:CancellationToken -> Task<StorageAccountGetKeysResponse>
Function GetKeysAsync (
    accountName As String,
    cancellationToken As CancellationToken
) As Task(Of StorageAccountGetKeysResponse)

Parameters

  • serviceName
    The name of the storage account for which keys should be retrieved.

Return Value

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

The StorageAccountGetKeysResponse object that contains the primary and secondary access keys for the storage account.

Remarks

For more information about retrieving access keys, see the following resources:

See Also

IStorageAccountOperations Interface
Microsoft.WindowsAzure.Management.Storage Namespace

Return to top