Dela via


IHostedServiceOperations.CreateAsync Method

Definition

The Create Hosted Service operation creates a new cloud service in Azure. (see http://msdn.microsoft.com/en-us/library/windowsazure/gg441304.aspx for more information)

public System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> CreateAsync(Microsoft.WindowsAzure.Management.Compute.Models.HostedServiceCreateParameters parameters, System.Threading.CancellationToken cancellationToken);
abstract member CreateAsync : Microsoft.WindowsAzure.Management.Compute.Models.HostedServiceCreateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
Public Function CreateAsync (parameters As HostedServiceCreateParameters, cancellationToken As CancellationToken) As Task(Of AzureOperationResponse)

Parameters

parameters
HostedServiceCreateParameters

Parameters supplied to the Create Hosted Service operation.

cancellationToken
CancellationToken

Cancellation token.

Returns

Task<Microsoft.Azure.AzureOperationResponse>

A standard service response including an HTTP status code and request ID.

Applies to