Share via


SubscriptionOperationsExtensions.RegisterResource Method

Registers a resource with 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 AzureOperationResponse

returnValue = SubscriptionOperationsExtensions.RegisterResource(operations, resourceName)

Syntax

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

Parameters

  • resourceName
    The name of the resource to register.

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