ISubscriptionOperations.RegisterResourceAsync Method
Asynchronously registers a resource with a subscription.
Namespace: Microsoft.WindowsAzure.Management
Assembly: Microsoft.WindowsAzure.Management (in Microsoft.WindowsAzure.Management.dll)
Usage
'Usage
Dim instance As ISubscriptionOperations
Dim resourceName As String
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of AzureOperationResponse)
returnValue = instance.RegisterResourceAsync(resourceName, cancellationToken)
Syntax
'Declaration
Function RegisterResourceAsync ( _
resourceName As String, _
cancellationToken As CancellationToken _
) As Task(Of AzureOperationResponse)
Task<AzureOperationResponse> RegisterResourceAsync (
string resourceName,
CancellationToken cancellationToken
)
Task<AzureOperationResponse^>^ RegisterResourceAsync (
String^ resourceName,
CancellationToken cancellationToken
)
Task<AzureOperationResponse> RegisterResourceAsync (
String resourceName,
CancellationToken cancellationToken
)
function RegisterResourceAsync (
resourceName : String,
cancellationToken : CancellationToken
) : Task<AzureOperationResponse>
Parameters
- resourceName
The name of the resource to register.
- cancellationToken
The cancellation token.
Return Value
An OperationResponse object that includes an HTTP status code and request ID.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012
Target Platforms
See Also
Reference
ISubscriptionOperations Interface
ISubscriptionOperations Members
Microsoft.WindowsAzure.Management Namespace