System.Net.DnsEndPoint.ToString Method

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

Syntax

public override string ToString ()

Returns

A string containing the address family, host name or IP address string, and the port number of the specified System.Net.DnsEndPoint.

Remarks

The DnsEndPoint.ToString method returns a string that contains the address family, the host name or IP address string, and the port number.

Requirements

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