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

CosmosDBAccountImpl.IWithVirtualNetworkRule.WithVirtualNetworkRule 方法

定义

指定 CosmosDB 帐户的新虚拟网络 ACL 规则。

Microsoft.Azure.Management.CosmosDB.Fluent.CosmosDBAccount.Update.IWithOptionals IWithVirtualNetworkRule.WithVirtualNetworkRule (string virtualNetworkId, string subnetName, bool? ignoreMissingVNetServiceEndpoint);
abstract member Microsoft.Azure.Management.CosmosDB.Fluent.CosmosDBAccount.Update.IWithVirtualNetworkRule.WithVirtualNetworkRule : string * string * Nullable<bool> -> Microsoft.Azure.Management.CosmosDB.Fluent.CosmosDBAccount.Update.IWithOptionals
override this.Microsoft.Azure.Management.CosmosDB.Fluent.CosmosDBAccount.Update.IWithVirtualNetworkRule.WithVirtualNetworkRule : string * string * Nullable<bool> -> Microsoft.Azure.Management.CosmosDB.Fluent.CosmosDBAccount.Update.IWithOptionals
Function WithVirtualNetworkRule (virtualNetworkId As String, subnetName As String, ignoreMissingVNetServiceEndpoint As Nullable(Of Boolean)) As IWithOptionals Implements IWithVirtualNetworkRule.WithVirtualNetworkRule

参数

virtualNetworkId
String

虚拟网络的 ID。

subnetName
String

虚拟网络中子网的名称;子网必须为“Microsoft.AzureCosmosDB”启用服务终结点。

ignoreMissingVNetServiceEndpoint
Nullable<Boolean>

返回

实现

适用于