IStorageAccountOperations.RegenerateKeysAsync Method
Asynchronously regenerates the primary or secondary access key for a storage account.
Namespace: Microsoft.WindowsAzure.Management.Storage
Assembly: Microsoft.WindowsAzure.Management.Storage (in Microsoft.WindowsAzure.Management.Storage.dll)
Usage
'Usage
Dim instance As IStorageAccountOperations
Dim parameters As StorageAccountRegenerateKeysParameters
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of StorageAccountRegenerateKeysResponse)
returnValue = instance.RegenerateKeysAsync(parameters, cancellationToken)
Syntax
'Declaration
Function RegenerateKeysAsync ( _
parameters As StorageAccountRegenerateKeysParameters, _
cancellationToken As CancellationToken _
) As Task(Of StorageAccountRegenerateKeysResponse)
Task<StorageAccountRegenerateKeysResponse> RegenerateKeysAsync (
StorageAccountRegenerateKeysParameters parameters,
CancellationToken cancellationToken
)
Task<StorageAccountRegenerateKeysResponse^>^ RegenerateKeysAsync (
StorageAccountRegenerateKeysParameters^ parameters,
CancellationToken cancellationToken
)
Task<StorageAccountRegenerateKeysResponse> RegenerateKeysAsync (
StorageAccountRegenerateKeysParameters parameters,
CancellationToken cancellationToken
)
function RegenerateKeysAsync (
parameters : StorageAccountRegenerateKeysParameters,
cancellationToken : CancellationToken
) : Task<StorageAccountRegenerateKeysResponse>
Parameters
- parameters
The StorageAccountRegenerateKeysParameters object that contains the parameters that are used to regenerate a key.
- cancellationToken
The cancellation token.
Return Value
The StorageAccountRegenerateKeysResponse object that contains the primary and secondary access keys for a storage account.
Remarks
For more information about regenerating keys, see the following resources:
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.
Platforms
Development Platforms
Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012
Target Platforms
See Also
Reference
IStorageAccountOperations Interface
IStorageAccountOperations Members
Microsoft.WindowsAzure.Management.Storage Namespace