Share via


AccountOperationsExtensions.RegenerateKeyAsync Method

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)

Usage

'Usage
Dim operations As IAccountOperations
Dim accountName As String
Dim keyType As MediaServicesKeyType
Dim returnValue As Task(Of AzureOperationResponse)

returnValue = AccountOperationsExtensions.RegenerateKeyAsync(operations, accountName, keyType)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function RegenerateKeyAsync ( _
    operations As IAccountOperations, _
    accountName As String, _
    keyType As MediaServicesKeyType _
) As Task(Of AzureOperationResponse)
[ExtensionAttribute] 
public static Task<AzureOperationResponse> RegenerateKeyAsync (
    IAccountOperations operations,
    string accountName,
    MediaServicesKeyType keyType
)
[ExtensionAttribute] 
public:
static Task<AzureOperationResponse^>^ RegenerateKeyAsync (
    IAccountOperations^ operations, 
    String^ accountName, 
    MediaServicesKeyType keyType
)
/** @attribute ExtensionAttribute() */ 
public static Task<AzureOperationResponse> RegenerateKeyAsync (
    IAccountOperations operations, 
    String accountName, 
    MediaServicesKeyType keyType
)
ExtensionAttribute 
public static function RegenerateKeyAsync (
    operations : IAccountOperations, 
    accountName : String, 
    keyType : MediaServicesKeyType
) : Task<AzureOperationResponse>

Parameters

  • operations
    Reference to the Microsoft.WindowsAzure.Management.MediaServices.IAccountOperations.
  • accountName
    Required. The name of the Media Services Account.
  • keyType
    Required. The type of key to regenerate (primary or secondary)

Return Value

A standard service response including an HTTP status code and request ID.

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

AccountOperationsExtensions Class
AccountOperationsExtensions Members
Microsoft.WindowsAzure.Management.MediaServices Namespace