Exemplo n.º 1
0
 /// <summary>
 /// Deletes a policy definition in a subscription.
 /// </summary>
 /// <remarks>
 /// This operation deletes the policy definition in the given subscription with
 /// the given name.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='policyDefinitionName'>
 /// The name of the policy definition to delete.
 /// </param>
 public static void Delete(this IPolicyDefinitionsOperations operations, string policyDefinitionName)
 {
     operations.DeleteAsync(policyDefinitionName).GetAwaiter().GetResult();
 }
 public async Task DeleteByNameAsync(string name, CancellationToken cancellationToken = default(CancellationToken))
 {
     await client.DeleteAsync(name, cancellationToken);
 }