Share via


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

IWithSubnet.WithSubnet(String, String) 方法

定义

将子网显式添加到虚拟网络。 请注意,此方法的效果是累加的,即每次使用时,都会向网络添加新子网。

public Microsoft.Azure.Management.Network.Fluent.Network.Update.IUpdate WithSubnet (string name, string cidr);
abstract member WithSubnet : string * string -> Microsoft.Azure.Management.Network.Fluent.Network.Update.IUpdate
Public Function WithSubnet (name As String, cidr As String) As IUpdate

参数

name
String

要分配给子网的名称。

cidr
String

子网的地址空间,在网络地址空间内,使用 CIDR 表示法。

返回

适用于