Class NetworkSettingsInfo
Contains information about the settings on a network adapter.
Implements
Inherited Members
Namespace: ABB.Robotics.Controllers
Assembly: ABB.Robotics.Controllers.PC.dll
Syntax
public class NetworkSettingsInfo : ReadOnlyObject, IDeserializationCallback
Constructors
NetworkSettingsInfo()
Default .ctor for external creation.
Declaration
public NetworkSettingsInfo()
NetworkSettingsInfo(IPAddress, Boolean, String, IPAddress, String)
Initializes a new NetworkSettingsInfo object.
Declaration
public NetworkSettingsInfo(IPAddress address, bool dhcp, string subnetMask, IPAddress gateway, string mac)
Parameters
Type | Name | Description |
---|---|---|
System.Net.IPAddress | address | Address. |
System.Boolean | dhcp | True if the settings are configured by dhcp. |
System.String | subnetMask | Subnet mask. |
System.Net.IPAddress | gateway | Gateway. |
System.String | mac | Mac address. |
Properties
Address
Gets the IP address.
Declaration
public IPAddress Address { get; set; }
Property Value
Type | Description |
---|---|
System.Net.IPAddress |
Remarks
Set is only available if the instance is not set to read only. Otherwise an System.InvalidOperationException is thrown.
Empty
Gets the single empty instance.
Declaration
public static NetworkSettingsInfo Empty { get; }
Property Value
Type | Description |
---|---|
NetworkSettingsInfo |
Gateway
Gets the gateway settings.
Declaration
public IPAddress Gateway { get; set; }
Property Value
Type | Description |
---|---|
System.Net.IPAddress |
Remarks
Set is only available if the instance is not set to read only. Otherwise an System.InvalidOperationException is thrown.
IsDhcp
Flag indicating that Dhcp is used to configure the network of the controller.
Declaration
public bool IsDhcp { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
Set is only available if the instance is not set to read only. Otherwise an System.InvalidOperationException is thrown.
MacAddress
Gets the Mac address. Note: You can't change the MAC address of a NIC.
Declaration
public string MacAddress { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Set is only available if the instance is not set to read only. Otherwise an System.InvalidOperationException is thrown.
SubnetMask
Gets the subnet mask.
Declaration
public string SubnetMask { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Set is only available if the instance is not set to read only. Otherwise an System.InvalidOperationException is thrown.
Methods
Equals(NetworkSettingsInfo)
Checks if the objects are considered equal.
Declaration
public bool Equals(NetworkSettingsInfo obj)
Parameters
Type | Name | Description |
---|---|---|
NetworkSettingsInfo | obj | Object to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | True if the object are equal, otherwise false. |
Equals(Object)
Checks if the objects are considered equal.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Object to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | True if the object are equal, otherwise false. |
Overrides
GetHashCode()
Serves as a hash function for a particular type. System.Object.GetHashCode() is suitable for use in hashing algorithms and data structures like a hash table.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the current System.Object. |