DnsEndPoint DnsEndPoint DnsEndPoint DnsEndPoint Class

Definition

Represents a network endpoint as a host name or a string representation of an IP address and a port number.

public ref class DnsEndPoint : System::Net::EndPoint
public class DnsEndPoint : System.Net.EndPoint
type DnsEndPoint = class
    inherit EndPoint
Public Class DnsEndPoint
Inherits EndPoint
Inheritance
DnsEndPointDnsEndPointDnsEndPointDnsEndPoint

Remarks

The DnsEndPoint class contains a host name or an IP address and remote port information needed by an application to connect to a service on a host. By combining the host name or IP address and port number of a service, the DnsEndPoint class forms a connection point to a service.

Constructors

DnsEndPoint(String, Int32) DnsEndPoint(String, Int32) DnsEndPoint(String, Int32) DnsEndPoint(String, Int32)

Initializes a new instance of the DnsEndPoint class with the host name or string representation of an IP address and a port number.

DnsEndPoint(String, Int32, AddressFamily) DnsEndPoint(String, Int32, AddressFamily) DnsEndPoint(String, Int32, AddressFamily) DnsEndPoint(String, Int32, AddressFamily)

Initializes a new instance of the DnsEndPoint class with the host name or string representation of an IP address, a port number, and an address family.

Properties

AddressFamily AddressFamily AddressFamily AddressFamily

Gets the Internet Protocol (IP) address family.

Host Host Host Host

Gets the host name or string representation of the Internet Protocol (IP) address of the host.

Port Port Port Port

Gets the port number of the DnsEndPoint.

Methods

Create(SocketAddress) Create(SocketAddress) Create(SocketAddress) Create(SocketAddress)

Creates an EndPoint instance from a SocketAddress instance.

(Inherited from EndPoint)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Compares two DnsEndPoint objects.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Returns a hash value for a DnsEndPoint.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Serialize() Serialize() Serialize() Serialize()

Serializes endpoint information into a SocketAddress instance.

(Inherited from EndPoint)
ToString() ToString() ToString() ToString()

Returns the host name or string representation of the IP address and port number of the DnsEndPoint.

Applies to