Compartilhar via


Método IAffinityGroupOperations.CreateAsync

Asynchronously creates a new affinity group in the specified subscription.

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

Uso

'Uso
Dim instance As IAffinityGroupOperations
Dim parameters As AffinityGroupCreateParameters
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of AzureOperationResponse)

returnValue = instance.CreateAsync(parameters, cancellationToken)

Sintaxe

'Declaração
Function CreateAsync ( _
    parameters As AffinityGroupCreateParameters, _
    cancellationToken As CancellationToken _
) As Task(Of AzureOperationResponse)
Task<AzureOperationResponse> CreateAsync (
    AffinityGroupCreateParameters parameters,
    CancellationToken cancellationToken
)
Task<AzureOperationResponse^>^ CreateAsync (
    AffinityGroupCreateParameters^ parameters, 
    CancellationToken cancellationToken
)
Task<AzureOperationResponse> CreateAsync (
    AffinityGroupCreateParameters parameters, 
    CancellationToken cancellationToken
)
function CreateAsync (
    parameters : AffinityGroupCreateParameters, 
    cancellationToken : CancellationToken
) : Task<AzureOperationResponse>

Parâmetros

  • cancellationToken
    The cancellation token.

Valor de retorno

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

Comentários

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

Segurança de thread

Qualquer membro estático público (compartilhado no Visual Basic) desse tipo é thread-safe. Não há garantia de que qualquer membro de instância seja seguro para threads.

Plataformas

Plataformas de desenvolvimento

Windows Vista, Windows 7 e Windows Server 2008

Plataformas de destino

Consulte também

Referência

Interface IAffinityGroupOperations
Membros IAffinityGroupOperations
Namespace Microsoft.WindowsAzure.Management