AccountOperationsExtensions.RegenerateKeyAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The Regenerate Media Services Account Key operation regenerates an account key for the given Media Services account in Windows Azure. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn167010.aspx for more information)
public static System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> RegenerateKeyAsync (this Microsoft.WindowsAzure.Management.MediaServices.IAccountOperations operations, string accountName, Microsoft.WindowsAzure.Management.MediaServices.Models.MediaServicesKeyType keyType);
static member RegenerateKeyAsync : Microsoft.WindowsAzure.Management.MediaServices.IAccountOperations * string * Microsoft.WindowsAzure.Management.MediaServices.Models.MediaServicesKeyType -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
<Extension()>
Public Function RegenerateKeyAsync (operations As IAccountOperations, accountName As String, keyType As MediaServicesKeyType) As Task(Of AzureOperationResponse)
Parameters
- operations
- IAccountOperations
Reference to the Microsoft.WindowsAzure.Management.MediaServices.IAccountOperations.
- accountName
- String
Required. The name of the Media Services Account.
- keyType
- MediaServicesKeyType
Required. The type of key to regenerate (primary or secondary)
Returns
A standard service response including an HTTP status code and request ID.
Applies to
Azure SDK for .NET