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

DedicatedHostsOperationsExtensions.CreateOrUpdateAsync 方法

定义

创建或更新专用主机 。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.Models.DedicatedHostInner> CreateOrUpdateAsync (this Microsoft.Azure.Management.Compute.Fluent.IDedicatedHostsOperations operations, string resourceGroupName, string hostGroupName, string hostName, Microsoft.Azure.Management.Compute.Fluent.Models.DedicatedHostInner parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Compute.Fluent.IDedicatedHostsOperations * string * string * string * Microsoft.Azure.Management.Compute.Fluent.Models.DedicatedHostInner * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.Models.DedicatedHostInner>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IDedicatedHostsOperations, resourceGroupName As String, hostGroupName As String, hostName As String, parameters As DedicatedHostInner, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DedicatedHostInner)

参数

operations
IDedicatedHostsOperations

此扩展方法的操作组。

resourceGroupName
String

资源组的名称。

hostGroupName
String

专用主机组的名称。

hostName
String

专用主机 的名称。

parameters
DedicatedHostInner

提供给“创建专用主机”的参数。

cancellationToken
CancellationToken

取消标记。

返回

适用于