Metodo SubscriptionOperationsExtensions.RegisterResourceAsync
Asynchronously registers a resource with a subscription.
Spazio dei nomi: Microsoft.WindowsAzure.Management
Assembly: Microsoft.WindowsAzure.Management (in Microsoft.WindowsAzure.Management.dll)
Utilizzo
'Utilizzo
Dim operations As ISubscriptionOperations
Dim resourceName As String
Dim returnValue As Task(Of AzureOperationResponse)
returnValue = SubscriptionOperationsExtensions.RegisterResourceAsync(operations, resourceName)
Sintassi
'Dichiarazione
<ExtensionAttribute> _
Public Shared Function RegisterResourceAsync ( _
operations As ISubscriptionOperations, _
resourceName As String _
) As Task(Of AzureOperationResponse)
[ExtensionAttribute]
public static Task<AzureOperationResponse> RegisterResourceAsync (
ISubscriptionOperations operations,
string resourceName
)
[ExtensionAttribute]
public:
static Task<AzureOperationResponse^>^ RegisterResourceAsync (
ISubscriptionOperations^ operations,
String^ resourceName
)
/** @attribute ExtensionAttribute() */
public static Task<AzureOperationResponse> RegisterResourceAsync (
ISubscriptionOperations operations,
String resourceName
)
ExtensionAttribute
public static function RegisterResourceAsync (
operations : ISubscriptionOperations,
resourceName : String
) : Task<AzureOperationResponse>
Parametri
- operations
The ISubscriptionOperations object that defines subscription operations.
- resourceName
The name of the resource to register.
Valore restituito
An OperationResponse object that includes an HTTP status code and request ID.
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
Classe SubscriptionOperationsExtensions
Membri SubscriptionOperationsExtensions
Spazio dei nomi Microsoft.WindowsAzure.Management