IPv6InterfaceProperties.GetScopeId Method (ScopeLevel)

.NET Framework (current version)
 

Gets the scope ID of the network interface associated with an Internet Protocol version 6 (IPv6) address.

Namespace:   System.Net.NetworkInformation
Assembly:  System (in System.dll)

public virtual long GetScopeId(
	ScopeLevel scopeLevel
)

Parameters

scopeLevel
Type: System.Net.NetworkInformation.ScopeLevel

The scope level.

Return Value

Type: System.Int64

Returns Int64.

The scope ID of the network interface associated with an IPv6 address.

.NET Framework
Available since 4.5
Return to top
Show: