WebSiteManagementClient.RegisterSubscriptionAsync Method
Asynchronously registers a subscription to use Microsoft Azure Websites.
Namespace: Microsoft.WindowsAzure.Management.WebSites
Assembly: Microsoft.WindowsAzure.Management.WebSites (in Microsoft.WindowsAzure.Management.WebSites.dll)
Usage
'Usage
Dim instance As WebSiteManagementClient
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of OperationResponse)
returnValue = instance.RegisterSubscriptionAsync(cancellationToken)
Syntax
'Declaration
<DebuggerStepThroughAttribute> _
Public Function RegisterSubscriptionAsync ( _
cancellationToken As CancellationToken _
) As Task(Of OperationResponse)
[DebuggerStepThroughAttribute]
public Task<OperationResponse> RegisterSubscriptionAsync (
CancellationToken cancellationToken
)
[DebuggerStepThroughAttribute]
public:
virtual Task<OperationResponse^>^ RegisterSubscriptionAsync (
CancellationToken cancellationToken
) sealed
/** @attribute DebuggerStepThroughAttribute() */
public final Task<OperationResponse> RegisterSubscriptionAsync (
CancellationToken cancellationToken
)
DebuggerStepThroughAttribute
public final function RegisterSubscriptionAsync (
cancellationToken : CancellationToken
) : Task<OperationResponse>
Parameters
- 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
WebSiteManagementClient Class
WebSiteManagementClient Members
Microsoft.WindowsAzure.Management.WebSites Namespace