コード例 #1
0
 protected override void ProcessRecord()
 {
     this.ConfirmAction(
         this.Force.IsPresent,
         string.Format(CultureInfo.CurrentCulture, Resources.RemovingAzureAutomationResourceWarning, this.Name),
         string.Format(CultureInfo.CurrentCulture, Resources.RemoveAzureAutomationResourceDescription, this.Name),
         this.Name,
         () =>
         {
             AutomationClient.DeleteAutomationAccount(this.ResourceGroupName, this.Name);
         });
 }
コード例 #2
0
 public override void ExecuteCmdlet()
 {
     this.ConfirmAction(
         this.Force.IsPresent,
         string.Format(CultureInfo.CurrentCulture, Resources.RemovingAzureAutomationResourceWarning, this.Name),
         string.Format(CultureInfo.CurrentCulture, Resources.RemoveAzureAutomationResourceDescription, this.Name),
         this.Name,
         () =>
     {
         AutomationClient.DeleteAutomationAccount(this.Name);
     });
 }