你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

HostedServiceOperationsExtensions.CreateAsync 方法

定义

“创建托管服务”操作在 Azure 中创建新的云服务。 (有关详细信息,请参阅 http://msdn.microsoft.com/en-us/library/windowsazure/gg441304.aspx)

public static System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> CreateAsync (this Microsoft.WindowsAzure.Management.Compute.IHostedServiceOperations operations, Microsoft.WindowsAzure.Management.Compute.Models.HostedServiceCreateParameters parameters);
static member CreateAsync : Microsoft.WindowsAzure.Management.Compute.IHostedServiceOperations * Microsoft.WindowsAzure.Management.Compute.Models.HostedServiceCreateParameters -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
<Extension()>
Public Function CreateAsync (operations As IHostedServiceOperations, parameters As HostedServiceCreateParameters) As Task(Of AzureOperationResponse)

参数

operations
IHostedServiceOperations

对 Microsoft.WindowsAzure.Management.Compute.IHostedServiceOperations 的引用。

parameters
HostedServiceCreateParameters

必需。 提供给“创建托管服务”操作的参数。

返回

Task<Microsoft.Azure.AzureOperationResponse>

标准服务响应,包括 HTTP 状态代码和请求 ID。

适用于