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

IWithSourcePort<ParentT>.FromPortRange(Int32, Int32) 方法

定义

指定应用此规则的源端口范围。

public Microsoft.Azure.Management.Network.Fluent.NetworkSecurityRule.Definition.IWithDestinationAddressOrSecurityGroup<ParentT> FromPortRange (int from, int to);
abstract member FromPortRange : int * int -> Microsoft.Azure.Management.Network.Fluent.NetworkSecurityRule.Definition.IWithDestinationAddressOrSecurityGroup<'ParentT>
Public Function FromPortRange (from As Integer, to As Integer) As IWithDestinationAddressOrSecurityGroup(Of ParentT)

参数

from
Int32

起始端口号。

to
Int32

结束端口号。

返回

适用于