1 out of 1 rated this helpful - Rate this topic

DnsEndPoint Class

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

System.Object
  System.Net.EndPoint
    System.Net.DnsEndPoint

Namespace:  System.Net
Assembly:  System (in System.dll)
public class DnsEndPoint : EndPoint

The DnsEndPoint type exposes the following members.

  Name Description
Public method 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.
Public method 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.
Top
  Name Description
Public property AddressFamily Gets the Internet Protocol (IP) address family. (Overrides EndPoint.AddressFamily.)
Public property Host Gets the host name or string representation of the Internet Protocol (IP) address of the host.
Public property Port Gets the port number of the DnsEndPoint.
Top
  Name Description
Public method Create Creates an EndPoint instance from a SocketAddress instance. (Inherited from EndPoint.)
Public method Equals Compares two DnsEndPoint objects. (Overrides Object.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Returns a hash value for a DnsEndPoint. (Overrides Object.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Serialize Serializes endpoint information into a SocketAddress instance. (Inherited from EndPoint.)
Public method ToString Returns the host name or string representation of the IP address and port number of the DnsEndPoint. (Overrides Object.ToString().)
Top

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.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ