Class NetworkInterfaceInfo
Network interface info.
Inherited Members
Namespace: Microsoft.XboxStudios.DeviceConsole.Environments.Network
Assembly: DeviceConsole.Environments.dll
Syntax
public class NetworkInterfaceInfo
Constructors
View SourceNetworkInterfaceInfo(string, string, int, Guid, string, Dhcp?, IEnumerable<IPAddressInfo>, IEnumerable<IPAddressInfo>)
Initializes a new instance of the NetworkInterfaceInfo class.
Declaration
public NetworkInterfaceInfo(string description, string macAddress, int index, Guid id, string interfaceType, Dhcp? dhcp, IEnumerable<IPAddressInfo> gateways, IEnumerable<IPAddressInfo> ipAddresses)
Parameters
Type | Name | Description |
---|---|---|
string | description | The description. |
string | macAddress | The hardware address. |
int | index | The index. |
Guid | id | The Id. |
string | interfaceType | The interface type. |
Dhcp | dhcp | The DHCP info. |
IEnumerable<IPAddressInfo> | gateways | The gateway info. |
IEnumerable<IPAddressInfo> | ipAddresses | The list of IP addresses. |
Properties
View SourceDescription
Gets the description.
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
string |
Dhcp
Gets the DHCP info.
Declaration
public Dhcp? Dhcp { get; }
Property Value
Type | Description |
---|---|
Dhcp |
Gateways
Gets the Gateway info.
Declaration
public IReadOnlyList<IPAddressInfo> Gateways { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<IPAddressInfo> |
Id
Gets the Id.
Declaration
public Guid Id { get; }
Property Value
Type | Description |
---|---|
Guid |
Index
Gets the index.
Declaration
public int Index { get; }
Property Value
Type | Description |
---|---|
int |
InterfaceType
Gets the type.
Declaration
public string InterfaceType { get; }
Property Value
Type | Description |
---|---|
string |
IPAddresses
Gets the list of IP addresses.
Declaration
public IReadOnlyList<IPAddressInfo> IPAddresses { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<IPAddressInfo> |
MacAddress
Gets the hardware address.
Declaration
public string MacAddress { get; }
Property Value
Type | Description |
---|---|
string |