Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll, IPS7LnkNet.Advanced.dll
The DnsDeviceEndPoint type exposes the following members.
Initializes a new instance of the DnsDeviceEndPoint class with the specified hostName
.
C#
public DnsDeviceEndPoint(string hostName)
Parameters
hostName
String
The string representation of the host name or IP address of the endpoint.
Exceptions
The hostName
is equal to Empty.
The hostName
is a null reference (Nothing in Visual Basic).
The hostName
is an invalid string representation of an IPAddress.
Initializes a new instance of the DnsDeviceEndPoint class with the specified hostName
and rack
number.
C#
public DnsDeviceEndPoint(string hostName, int rack)
Parameters
hostName
String
The string representation of the host name or IP address of the endpoint.
rack
Int32
The rack number associated with the hostName
.
Exceptions
The hostName
is equal to Empty.
The hostName
is a null reference (Nothing in Visual Basic).
The rack
is out of the bounds defined by MinRack or MaxRack.
The hostName
is an invalid string representation of an IPAddress.
Initializes a new instance of the DnsDeviceEndPoint class with the specified hostName
, rack
number and slot
number.
C#
public DnsDeviceEndPoint(string hostName, int rack, int slot)
Parameters
hostName
String
The string representation of the host name or IP address of the endpoint.
rack
Int32
The rack number associated with the hostName
.
slot
Int32
The slot number associated with the hostName
.
Exceptions
The hostName
is equal to Empty.
The hostName
is a null reference (Nothing in Visual Basic).
The rack
or slot
is out of the bounds defined by MinRack, MaxRack, MinSlot or MaxSlot.
The hostName
is an invalid string representation of an IPAddress.
Gets or sets the IP address of the endpoint.
C#
public override IPAddress Address { get; set; }
Property Value
An instance of the IPAddress class containing the IP address of the endpoint.
Exceptions
The value is a null reference (Nothing in Visual Basic).
Gets or sets the host name or IP address of the endpoint.
C#
public string HostName { get; set; }
Property Value
An string representing the host name or IP address of the endpoint.
Exceptions
The value is equal to Empty.
The value is a null reference (Nothing in Visual Basic).
The value is an invalid string representation of an IPAddress.
Returns a hash value for an endpoint.
C#
public override int GetHashCode()
Returns
An integer hash value.
Returns a string that represents the current DnsDeviceEndPoint.
C#
public override string ToString()
Returns
A string that represents the current DnsDeviceEndPoint.