Compartilhar via


Método AffinityGroupOperationsExtensions.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 operations As IAffinityGroupOperations
Dim parameters As AffinityGroupCreateParameters
Dim returnValue As Task(Of AzureOperationResponse)

returnValue = AffinityGroupOperationsExtensions.CreateAsync(operations, parameters)

Sintaxe

'Declaração
<ExtensionAttribute> _
Public Shared Function CreateAsync ( _
    operations As IAffinityGroupOperations, _
    parameters As AffinityGroupCreateParameters _
) As Task(Of AzureOperationResponse)
[ExtensionAttribute] 
public static Task<AzureOperationResponse> CreateAsync (
    IAffinityGroupOperations operations,
    AffinityGroupCreateParameters parameters
)
[ExtensionAttribute] 
public:
static Task<AzureOperationResponse^>^ CreateAsync (
    IAffinityGroupOperations^ operations, 
    AffinityGroupCreateParameters^ parameters
)
/** @attribute ExtensionAttribute() */ 
public static Task<AzureOperationResponse> CreateAsync (
    IAffinityGroupOperations operations, 
    AffinityGroupCreateParameters parameters
)
ExtensionAttribute 
public static function CreateAsync (
    operations : IAffinityGroupOperations, 
    parameters : AffinityGroupCreateParameters
) : Task<AzureOperationResponse>

Parâmetros

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

Classe AffinityGroupOperationsExtensions
Membros AffinityGroupOperationsExtensions
Namespace Microsoft.WindowsAzure.Management