Ejemplo n.º 1
0
 /// <summary>
 /// Delete the specified secret
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.KeyVault.Internal.ISecretOperations.
 /// </param>
 /// <param name='secretIdentifier'>
 /// Required.
 /// </param>
 /// <returns>
 /// Represents the response to a secret operation request.
 /// </returns>
 public static Task <SecretResponseMessageWithRawJsonContent> DeleteAsync(this ISecretOperations operations, string secretIdentifier)
 {
     return(operations.DeleteAsync(secretIdentifier, CancellationToken.None));
 }
 /// <summary>
 /// Deletes the secret resource.
 /// </summary>
 /// <remarks>
 /// Deletes the secret resource identified by the name.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Azure resource group name
 /// </param>
 /// <param name='secretResourceName'>
 /// The name of the secret resource.
 /// </param>
 public static void Delete(this ISecretOperations operations, string resourceGroupName, string secretResourceName)
 {
     operations.DeleteAsync(resourceGroupName, secretResourceName).GetAwaiter().GetResult();
 }