DnsDeviceEndPoint Members

Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll, IPS7LnkNet.Advanced.dll
The DnsDeviceEndPoint type exposes the following members.

DnsDeviceEndPoint(String)

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

ArgumentException

The hostName is equal to Empty.

ArgumentNullException

The hostName is a null reference (Nothing in Visual Basic).

FormatException

The hostName is an invalid string representation of an IPAddress.

DnsDeviceEndPoint(String, Int32)

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

ArgumentException

The hostName is equal to Empty.

ArgumentNullException

The hostName is a null reference (Nothing in Visual Basic).

ArgumentOutOfRangeException

The rack is out of the bounds defined by MinRack or MaxRack.

FormatException

The hostName is an invalid string representation of an IPAddress.

DnsDeviceEndPoint(String, Int32, Int32)

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

ArgumentException

The hostName is equal to Empty.

ArgumentNullException

The hostName is a null reference (Nothing in Visual Basic).

ArgumentOutOfRangeException

The rack or slot is out of the bounds defined by MinRack, MaxRack, MinSlot or MaxSlot.

FormatException

The hostName is an invalid string representation of an IPAddress.

Address

Gets or sets the IP address of the endpoint.

C#

public override IPAddress Address { get; set; }


Property Value

IPAddress

An instance of the IPAddress class containing the IP address of the endpoint.



Exceptions

ArgumentNullException

The value is a null reference (Nothing in Visual Basic).

HostName

Gets or sets the host name or IP address of the endpoint.

C#

public string HostName { get; set; }


Property Value

String

An string representing the host name or IP address of the endpoint.



Exceptions

ArgumentException

The value is equal to Empty.

ArgumentNullException

The value is a null reference (Nothing in Visual Basic).

FormatException

The value is an invalid string representation of an IPAddress.

DiscardResolvedAddress()

Discards any so far resolved Address information using the HostName.

C#

public void DiscardResolvedAddress()

GetHashCode()

Returns a hash value for an endpoint.

C#

public override int GetHashCode()


Returns

Int32

An integer hash value.

ToString()

Returns a string that represents the current DnsDeviceEndPoint.

C#

public override string ToString()


Returns

String

A string that represents the current DnsDeviceEndPoint.