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

IpAllocationsOperationsExtensions.CreateOrUpdateAsync 方法

定义

创建或更新指定资源组中的 IpAllocation。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Models.IpAllocation> CreateOrUpdateAsync (this Microsoft.Azure.Management.Network.IIpAllocationsOperations operations, string resourceGroupName, string ipAllocationName, Microsoft.Azure.Management.Network.Models.IpAllocation parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Network.IIpAllocationsOperations * string * string * Microsoft.Azure.Management.Network.Models.IpAllocation * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Models.IpAllocation>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IIpAllocationsOperations, resourceGroupName As String, ipAllocationName As String, parameters As IpAllocation, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IpAllocation)

参数

operations
IIpAllocationsOperations

此扩展方法的操作组。

resourceGroupName
String

资源组的名称。

ipAllocationName
String

IpAllocation 的名称。

parameters
IpAllocation

提供给创建或更新虚拟网络操作的参数。

cancellationToken
CancellationToken

取消标记。

返回

适用于