ToString Method
Collapse the table of content
Expand the table of content

DnsEndPoint.ToString Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

public override string ToString()

Return Value

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

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft