Struct NetworkInterfaceInformation
Structure describing an in-game network card.
Inherited Members
Namespace: SociallyDistant.Core.OS.Network
Assembly: SociallyDistant.Framework.dll
Syntax
public struct NetworkInterfaceInformationFields
DefaultGateway
An optional string containing the IP address of this network card's default gateway.
Declaration
public string? DefaultGatewayField Value
| Type | Description | 
|---|---|
| string | 
LocalAddress
String containing the address of the network card in its local area network.
Declaration
public string LocalAddressField Value
| Type | Description | 
|---|---|
| string | 
MacAddress
String containing the network card's MAC address.
Declaration
public string MacAddressField Value
| Type | Description | 
|---|---|
| string | 
Name
Driver name of the network card.
Declaration
public string NameField Value
| Type | Description | 
|---|---|
| string | 
SubnetMask
String containing the CIDR notation of this network card's local area network.
Declaration
public string SubnetMaskField 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. |