コード例 #1
0
        public override void ExecuteCmdlet()
        {
            ExecutionBlock(() =>
            {
                base.ExecuteCmdlet();

                AzureBackupClient.DeleteVault(Vault.ResourceGroupName, Vault.Name);
            });
        }
コード例 #2
0
        public override void ExecuteCmdlet()
        {
            ExecutionBlock(() =>
            {
                base.ExecuteCmdlet();

                if (!AzureBackupClient.DeleteVault(Vault.ResourceGroupName, Vault.Name))
                {
                    throw new Exception(Resources.ResourceNotFoundMessage);
                }
            });
        }
コード例 #3
0
        protected override void ProcessRecord()
        {
            ExecutionBlock(() =>
            {
                base.ProcessRecord();

                if (!AzureBackupClient.DeleteVault(Vault.ResourceGroupName, Vault.Name))
                {
                    throw new Exception(Resources.ResourceNotFoundMessage);
                }
            });
        }