Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.ServiceClientAdapterNS.ServiceClientAdapter.RemoveProtectionPolicy C# (CSharp) 메소드

RemoveProtectionPolicy() 공개 메소드

Deletes protection policy from the vault specified by the name
public RemoveProtectionPolicy ( string policyName ) : AzureOperationResponse
policyName string Name of the policy to be deleted
리턴 AzureOperationResponse
        public AzureOperationResponse RemoveProtectionPolicy(
                string policyName)
        {
            return BmsAdapter.Client.ProtectionPolicies.DeleteAsync(
                                     BmsAdapter.GetResourceGroupName(),
                                     BmsAdapter.GetResourceName(),
                                     policyName,
                                     BmsAdapter.GetCustomRequestHeaders(),
                                     BmsAdapter.CmdletCancellationToken).Result;
        }
    }