語言

IPv6InterfaceProperties.GetScopeId(ScopeLevel) 方法

定義

取得與網際網路協定版本 6(IPv6)位址相關的網路介面範圍 ID。

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);
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")>]
abstract member GetScopeId : System.Net.NetworkInformation.ScopeLevel -> int64
override this.GetScopeId : System.Net.NetworkInformation.ScopeLevel -> int64
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。

屬性

適用於