コード例 #1
0
 /// <summary>
 /// Deletes a workspace
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace
 /// </param>
 public static object BeginDelete(this IWorkspacesOperations operations, string resourceGroupName, string workspaceName)
 {
     return(operations.BeginDeleteAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult());
 }
コード例 #2
0
 /// <summary>
 /// Deletes a workspace resource. To recover the workspace, create it again
 /// with the same name, in the same subscription, resource group and location.
 /// The name is kept for 14 days and cannot be used for another workspace. To
 /// remove the workspace completely and release the name, use the force flag.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace.
 /// </param>
 /// <param name='force'>
 /// Deletes the workspace without the recovery option. A workspace that was
 /// deleted with this flag cannot be recovered.
 /// </param>
 public static void BeginDelete(this IWorkspacesOperations operations, string resourceGroupName, string workspaceName, bool?force = default(bool?))
 {
     operations.BeginDeleteAsync(resourceGroupName, workspaceName, force).GetAwaiter().GetResult();
 }