IStorageAccountOperations.GetKeysAsync Method (String, CancellationToken)
Asynchronously retrieves the primary and secondary access keys for a storage account.
Assembly: Microsoft.WindowsAzure.Management.Storage (in Microsoft.WindowsAzure.Management.Storage.dll)
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.
- cancellationToken
-
Type:
System.Threading.CancellationToken
The cancellation token.
Return Value
Type: System.Threading.Tasks.Task(Of StorageAccountGetKeysResponse)The StorageAccountGetKeysResponse object that contains the primary and secondary access keys for the storage account.
For more information about retrieving access keys, see the following resources:
Show: