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

IPrivateZonesOperations.BeginCreateOrUpdateWithHttpMessagesAsync 方法

定义

创建或更新专用 DNS区域。 不修改区域中虚拟网络或 DNS 记录的链接。

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.PrivateDns.Models.PrivateZone>> BeginCreateOrUpdateWithHttpMessagesAsync (string resourceGroupName, string privateZoneName, Microsoft.Azure.Management.PrivateDns.Models.PrivateZone parameters, string ifMatch = default, string ifNoneMatch = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member BeginCreateOrUpdateWithHttpMessagesAsync : string * string * Microsoft.Azure.Management.PrivateDns.Models.PrivateZone * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.PrivateDns.Models.PrivateZone>>
Public Function BeginCreateOrUpdateWithHttpMessagesAsync (resourceGroupName As String, privateZoneName As String, parameters As PrivateZone, Optional ifMatch As String = Nothing, Optional ifNoneMatch As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of PrivateZone))

参数

resourceGroupName
String

资源组的名称。

privateZoneName
String

没有终止点) (专用 DNS区域的名称。

parameters
PrivateZone

提供给 CreateOrUpdate 操作的参数。

ifMatch
String

专用 DNS区域的 ETag。 省略此值以始终覆盖当前区域。 指定上次看到的 ETag 值,以防止意外覆盖任何并发更改。

ifNoneMatch
String

设置为“*”以允许创建新的专用 DNS区域,但要阻止更新现有区域。 其他值将被忽略。

customHeaders
Dictionary<String,List<String>>

将添加到请求的标头。

cancellationToken
CancellationToken

取消标记。

返回

例外

操作返回无效状态代码时引发

无法反序列化响应时引发

当所需的参数为 null 时引发

适用于