IAffinityGroupOperations.DeleteAsync Method (String, CancellationToken)

 

Asynchronously deletes an affinity group from the specified subscription.

Namespace:   Microsoft.WindowsAzure.Management
Assembly:  Microsoft.WindowsAzure.Management (in Microsoft.WindowsAzure.Management.dll)

Function DeleteAsync (
	affinityGroupName As String,
	cancellationToken As CancellationToken
) As Task(Of AzureOperationResponse)

Parameters

affinityGroupName
Type: System.String

The name of the affinity group to delete.

cancellationToken
Type: System.Threading.CancellationToken

The cancellation token.

Return Value

Type: System.Threading.Tasks.Task(Of AzureOperationResponse)

An OperationResponse object that includes an HTTP status code and request ID.

Before you delete an affinity group, you must modify or delete any resources that currently use it. An affinity group cannot be deleted as long as it is associated with any resources.

For more information about deleting affinity groups, see the following resources:

Return to top
Show: