SubscriptionOperationsExtensions.RegisterResourceAsync Method (ISubscriptionOperations, String)
Asynchronously registers a resource with a subscription.
Namespace: Microsoft.WindowsAzure.Management
Assembly: Microsoft.WindowsAzure.Management (in Microsoft.WindowsAzure.Management.dll)
Syntax
public static Task<AzureOperationResponse> RegisterResourceAsync(
this ISubscriptionOperations operations,
string resourceName
)
public:
[ExtensionAttribute]
static Task<AzureOperationResponse^>^ RegisterResourceAsync(
ISubscriptionOperations^ operations,
String^ resourceName
)
static member RegisterResourceAsync :
operations:ISubscriptionOperations *
resourceName:string -> Task<AzureOperationResponse>
<ExtensionAttribute>
Public Shared Function RegisterResourceAsync (
operations As ISubscriptionOperations,
resourceName As String
) As Task(Of AzureOperationResponse)
Parameters
operations
Type: Microsoft.WindowsAzure.Management.ISubscriptionOperationsThe ISubscriptionOperations object that defines subscription operations.
resourceName
Type: System.StringThe name of the resource to register.
Return Value
Type: System.Threading.Tasks.Task<AzureOperationResponse>
An OperationResponse object that includes an HTTP status code and request ID.
See Also
SubscriptionOperationsExtensions Class
Microsoft.WindowsAzure.Management Namespace
Return to top