IAccountOperations.RegenerateKeyAsync Method (String, MediaServicesKeyType, CancellationToken)
The Regenerate Media Services Account Key operation regenerates an account key for the given Media Services account in Windows Azure. (see https://msdn.microsoft.com/en-us/library/windowsazure/dn167010.aspx for more information)
Namespace: Microsoft.WindowsAzure.Management.MediaServices
Assembly: Microsoft.WindowsAzure.Management.MediaServices (in Microsoft.WindowsAzure.Management.MediaServices.dll)
Syntax
Task<AzureOperationResponse> RegenerateKeyAsync(
string accountName,
MediaServicesKeyType keyType,
CancellationToken cancellationToken
)
Task<AzureOperationResponse^>^ RegenerateKeyAsync(
String^ accountName,
MediaServicesKeyType keyType,
CancellationToken cancellationToken
)
abstract RegenerateKeyAsync :
accountName:string *
keyType:MediaServicesKeyType *
cancellationToken:CancellationToken -> Task<AzureOperationResponse>
Function RegenerateKeyAsync (
accountName As String,
keyType As MediaServicesKeyType,
cancellationToken As CancellationToken
) As Task(Of AzureOperationResponse)
Parameters
accountName
Type: System.StringThe name of the Media Services Account.
keyType
Type: Microsoft.WindowsAzure.Management.MediaServices.Models.MediaServicesKeyTypeThe type of key to regenerate (primary or secondary)
cancellationToken
Type: System.Threading.CancellationTokenCancellation token.
Return Value
Type: System.Threading.Tasks.Task<AzureOperationResponse>
A standard service response including an HTTP status code and request ID.
See Also
IAccountOperations Interface
Microsoft.WindowsAzure.Management.MediaServices Namespace
Return to top