Condividi tramite


Metodo IAffinityGroupOperations.DeleteAsync

Asynchronously deletes an affinity group from the specified subscription.

Spazio dei nomi: Microsoft.WindowsAzure.Management
Assembly: Microsoft.WindowsAzure.Management (in Microsoft.WindowsAzure.Management.dll)

Utilizzo

'Utilizzo
Dim instance As IAffinityGroupOperations
Dim affinityGroupName As String
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of AzureOperationResponse)

returnValue = instance.DeleteAsync(affinityGroupName, cancellationToken)

Sintassi

'Dichiarazione
Function DeleteAsync ( _
    affinityGroupName As String, _
    cancellationToken As CancellationToken _
) As Task(Of AzureOperationResponse)
Task<AzureOperationResponse> DeleteAsync (
    string affinityGroupName,
    CancellationToken cancellationToken
)
Task<AzureOperationResponse^>^ DeleteAsync (
    String^ affinityGroupName, 
    CancellationToken cancellationToken
)
Task<AzureOperationResponse> DeleteAsync (
    String affinityGroupName, 
    CancellationToken cancellationToken
)
function DeleteAsync (
    affinityGroupName : String, 
    cancellationToken : CancellationToken
) : Task<AzureOperationResponse>

Parametri

  • affinityGroupName
    The name of the affinity group to delete.
  • cancellationToken
    The cancellation token.

Valore restituito

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

Osservazioni

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:

Sicurezza dei thread

Qualsiasi membro statico pubblico (condiviso in Visual Basic) di questo tipo è thread safe. Non è invece garantita la sicurezza dei membri dell'istanza.

Piattaforme

Piattaforme di sviluppo

Windows Vista, Windows 7 e Windows Server 2008

Piattaforme di destinazione

Vedere anche

Riferimento

Interfaccia IAffinityGroupOperations
Membri IAffinityGroupOperations
Spazio dei nomi Microsoft.WindowsAzure.Management