共用方式為


AssignmentResource.DeleteAsync Method

Definition

Delete a blueprint assignment.

  • Request Path: /{resourceScope}/providers/Microsoft.Blueprint/blueprintAssignments/{assignmentName}
  • Operation Id: Assignments_Delete
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Blueprint.AssignmentResource>> DeleteAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Blueprint.Models.AssignmentDeleteBehavior? deleteBehavior = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteAsync : Azure.WaitUntil * Nullable<Azure.ResourceManager.Blueprint.Models.AssignmentDeleteBehavior> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Blueprint.AssignmentResource>>
override this.DeleteAsync : Azure.WaitUntil * Nullable<Azure.ResourceManager.Blueprint.Models.AssignmentDeleteBehavior> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Blueprint.AssignmentResource>>
Public Overridable Function DeleteAsync (waitUntil As WaitUntil, Optional deleteBehavior As Nullable(Of AssignmentDeleteBehavior) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of AssignmentResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

deleteBehavior
Nullable<AssignmentDeleteBehavior>

When deleteBehavior=all, the resources that were created by the blueprint assignment will be deleted.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to