Struct NetworkInterfaceInformation
Structure describing an in-game network card.
Inherited Members
Namespace: SociallyDistant.Core.OS.Network
Assembly: SociallyDistant.Framework.dll
Syntax
public struct NetworkInterfaceInformation
Fields
DefaultGateway
An optional string containing the IP address of this network card's default gateway.
Declaration
public string? DefaultGateway
Field Value
Type | Description |
---|---|
string |
LocalAddress
String containing the address of the network card in its local area network.
Declaration
public string LocalAddress
Field Value
Type | Description |
---|---|
string |
MacAddress
String containing the network card's MAC address.
Declaration
public string MacAddress
Field Value
Type | Description |
---|---|
string |
Name
Driver name of the network card.
Declaration
public string Name
Field Value
Type | Description |
---|---|
string |
SubnetMask
String containing the CIDR notation of this network card's local area network.
Declaration
public string SubnetMask
Field Value
Type | Description |
---|---|
string |
Methods
ToSubnet()
Creates a subnet value representing the network this network card is connected to.
Declaration
public Subnet ToSubnet()
Returns
Type | Description |
---|---|
Subnet | A Subnet value representing this card's network. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | The values of this structure are invalid and can't be parsed. |