示例#1
0
 /// <summary>
 /// Delete the watcher by name.  (see
 /// http://aka.ms/azureautomationsdk/watcheroperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IWatcherOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='watcherName'>
 /// Required. The watcher name.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <AzureOperationResponse> DeleteAsync(this IWatcherOperations operations, string resourceGroupName, string automationAccount, string watcherName)
 {
     return(operations.DeleteAsync(resourceGroupName, automationAccount, watcherName, CancellationToken.None));
 }
示例#2
0
 /// <summary>
 /// Delete the watcher by name.
 /// <see href="http://aka.ms/azureautomationsdk/watcheroperations" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of an Azure Resource group.
 /// </param>
 /// <param name='automationAccountName'>
 /// The name of the automation account.
 /// </param>
 /// <param name='watcherName'>
 /// The watcher name.
 /// </param>
 public static void Delete(this IWatcherOperations operations, string resourceGroupName, string automationAccountName, string watcherName)
 {
     operations.DeleteAsync(resourceGroupName, automationAccountName, watcherName).GetAwaiter().GetResult();
 }