IPv6InterfaceProperties.GetScopeId(ScopeLevel) 方法

定义

获取与 Internet 协议版本 6 (IPv6) 地址关联的网络接口的范围 ID。

public:
 virtual long GetScopeId(System::Net::NetworkInformation::ScopeLevel scopeLevel);
public virtual long GetScopeId (System.Net.NetworkInformation.ScopeLevel scopeLevel);
[System.Runtime.Versioning.UnsupportedOSPlatform("freebsd")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("osx")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public virtual long GetScopeId (System.Net.NetworkInformation.ScopeLevel scopeLevel);
abstract member GetScopeId : System.Net.NetworkInformation.ScopeLevel -> int64
override this.GetScopeId : System.Net.NetworkInformation.ScopeLevel -> int64
[<System.Runtime.Versioning.UnsupportedOSPlatform("freebsd")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("osx")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
abstract member GetScopeId : System.Net.NetworkInformation.ScopeLevel -> int64
override this.GetScopeId : System.Net.NetworkInformation.ScopeLevel -> int64
Public Overridable Function GetScopeId (scopeLevel As ScopeLevel) As Long

参数

scopeLevel
ScopeLevel

范围级别。

返回

与 IPv6 地址关联的网络接口的范围 ID。

属性

适用于