Class NetworkInterfaceInfo
Network interface information.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class NetworkInterfaceInfo : Info
Properties
AdapterSpeed
Gets or sets the network interface adapter speed.
Declaration
public long AdapterSpeed { get; set; }
Property Value
Type | Description |
---|---|
System. |
IPAddress
Gets or sets the network interface address.
Declaration
public string IPAddress { get; set; }
Property Value
Type | Description |
---|---|
System. |
Mask
Gets or sets the network interface subnet mask.
Declaration
public string Mask { get; set; }
Property Value
Type | Description |
---|---|
System. |
Type
Gets or sets the type.
Declaration
public string Type { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
DeserializeProperties(String, String)
Deserializes the properties.
Declaration
protected override void DeserializeProperties(string key, string valueJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The key. |
System. |
valueJson | The value in JSON format. |
Overrides
FromJson(String)
Deserializes Json to a NetworkInterfaceInfo.
Declaration
public static NetworkInterfaceInfo FromJson(string networkInterfaceInfoJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
networkInterfaceInfoJson | The serialized Json. |
Returns
Type | Description |
---|---|
Network |
The deserialized NetworkInterfaceInfo. |
FromJsonArray(String)
Deserializes JSON to an array.
Declaration
public static NetworkInterfaceInfo[] FromJsonArray(string networkInterfaceInfosJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
networkInterfaceInfosJson | The serialized JSON. |
Returns
Type | Description |
---|---|
Network |
The deserialized array. |
SerializeProperties(Dictionary<String, String>)
Serializes the properties.
Declaration
protected override void SerializeProperties(Dictionary<string, string> jsonObject)
Parameters
Type | Name | Description |
---|---|---|
System. |
jsonObject | The JSON object. |
Overrides
ToJson()
Serializes this instance to Json.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System. |
ToJson(NetworkInterfaceInfo)
Serializes an instance to Json.
Declaration
public static string ToJson(NetworkInterfaceInfo client)
Parameters
Type | Name | Description |
---|---|---|
Network |
client | The instance to serialize. |
Returns
Type | Description |
---|---|
System. |
Serialized Json. |
ToJsonArray(NetworkInterfaceInfo[])
Serializes an array to JSON.
Declaration
public static string ToJsonArray(NetworkInterfaceInfo[] networkInterfaceInfos)
Parameters
Type | Name | Description |
---|---|---|
Network |
networkInterfaceInfos | The array to serialize. |
Returns
Type | Description |
---|---|
System. |
The serialized JSON. |