DnsEndPoint Class
TOC
Collapse the table of content
Expand the table of content

DnsEndPoint Class

.NET Framework (current version)
 

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

Namespace:   System.Net
Assembly:  System (in System.dll)

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

public ref class DnsEndPoint : EndPoint

NameDescription
System_CAPS_pubmethodDnsEndPoint(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.

System_CAPS_pubmethodDnsEndPoint(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.

NameDescription
System_CAPS_pubpropertyAddressFamily

Gets the Internet Protocol (IP) address family.(Overrides EndPoint::AddressFamily.)

System_CAPS_pubpropertyHost

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

System_CAPS_pubpropertyPort

Gets the port number of the DnsEndPoint.

NameDescription
System_CAPS_pubmethodCreate(SocketAddress^)

Creates an EndPoint instance from a SocketAddress instance.(Inherited from EndPoint.)

System_CAPS_pubmethodEquals(Object^)

Compares two DnsEndPoint objects.(Overrides Object::Equals(Object^).)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Returns a hash value for a DnsEndPoint.(Overrides Object::GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodSerialize()

Serializes endpoint information into a SocketAddress instance.(Inherited from EndPoint.)

System_CAPS_pubmethodToString()

Returns the host name or string representation of the IP address and port number of the DnsEndPoint.(Overrides Object::ToString().)

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.

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft