Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SystemIPv6InterfaceProperties.cs
Go to the documentation of this file.
1
namespace
System.Net.NetworkInformation
;
2
3
internal
sealed
class
SystemIPv6InterfaceProperties
:
IPv6InterfaceProperties
4
{
5
private
readonly uint
_index
;
6
7
private
readonly uint
_mtu
;
8
9
private
readonly uint[]
_zoneIndices
;
10
11
public
override
int
Index
=> (int)
_index
;
12
13
public
override
int
Mtu
=> (int)
_mtu
;
14
15
internal
SystemIPv6InterfaceProperties
(uint
index
, uint mtu, uint[] zoneIndices)
16
{
17
_index
=
index
;
18
_mtu
= mtu;
19
_zoneIndices
= zoneIndices;
20
}
21
22
public
override
long
GetScopeId
(
ScopeLevel
scopeLevel)
23
{
24
if
(scopeLevel <
ScopeLevel
.None || (
int
)scopeLevel >=
_zoneIndices
.Length)
25
{
26
throw
new
ArgumentOutOfRangeException
(
"scopeLevel"
);
27
}
28
return
_zoneIndices
[(int)scopeLevel];
29
}
30
}
System.ArgumentOutOfRangeException
Definition
ArgumentOutOfRangeException.cs:9
System.Net.NetworkInformation.IPv6InterfaceProperties
Definition
IPv6InterfaceProperties.cs:4
System.Net.NetworkInformation.SystemIPv6InterfaceProperties._index
readonly uint _index
Definition
SystemIPv6InterfaceProperties.cs:5
System.Net.NetworkInformation.SystemIPv6InterfaceProperties._mtu
readonly uint _mtu
Definition
SystemIPv6InterfaceProperties.cs:7
System.Net.NetworkInformation.SystemIPv6InterfaceProperties.Mtu
override int Mtu
Definition
SystemIPv6InterfaceProperties.cs:13
System.Net.NetworkInformation.SystemIPv6InterfaceProperties.SystemIPv6InterfaceProperties
SystemIPv6InterfaceProperties(uint index, uint mtu, uint[] zoneIndices)
Definition
SystemIPv6InterfaceProperties.cs:15
System.Net.NetworkInformation.SystemIPv6InterfaceProperties.GetScopeId
override long GetScopeId(ScopeLevel scopeLevel)
Definition
SystemIPv6InterfaceProperties.cs:22
System.Net.NetworkInformation.SystemIPv6InterfaceProperties._zoneIndices
readonly uint[] _zoneIndices
Definition
SystemIPv6InterfaceProperties.cs:9
System.Net.NetworkInformation.SystemIPv6InterfaceProperties
Definition
SystemIPv6InterfaceProperties.cs:4
System.Net.NetworkInformation.ScopeLevel
ScopeLevel
Definition
ScopeLevel.cs:4
System.Net.NetworkInformation
Definition
DuplicateAddressDetectionState.cs:1
System.ExceptionArgument.index
@ index
System.Index
Definition
Index.cs:7
source
System.Net.NetworkInformation
System.Net.NetworkInformation
SystemIPv6InterfaceProperties.cs
Generated by
1.10.0