Share via


SubscriptionOperationsExtensions.UnregisterResourceAsync Method

Asynchronously removes the registration of a resource from a subscription.

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

Usage

'Usage
Dim operations As ISubscriptionOperations
Dim resourceName As String
Dim returnValue As Task(Of AzureOperationResponse)

returnValue = SubscriptionOperationsExtensions.UnregisterResourceAsync(operations, resourceName)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function UnregisterResourceAsync ( _
    operations As ISubscriptionOperations, _
    resourceName As String _
) As Task(Of AzureOperationResponse)
[ExtensionAttribute] 
public static Task<AzureOperationResponse> UnregisterResourceAsync (
    ISubscriptionOperations operations,
    string resourceName
)
[ExtensionAttribute] 
public:
static Task<AzureOperationResponse^>^ UnregisterResourceAsync (
    ISubscriptionOperations^ operations, 
    String^ resourceName
)
/** @attribute ExtensionAttribute() */ 
public static Task<AzureOperationResponse> UnregisterResourceAsync (
    ISubscriptionOperations operations, 
    String resourceName
)
ExtensionAttribute 
public static function UnregisterResourceAsync (
    operations : ISubscriptionOperations, 
    resourceName : String
) : Task<AzureOperationResponse>

Parameters

  • resourceName
    The name of the resource to remove from registration.

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

SubscriptionOperationsExtensions Class
SubscriptionOperationsExtensions Members
Microsoft.WindowsAzure.Management Namespace