System.Net.IPAddress.ToString Method

Converts an Internet address to its standard notation.

Syntax

public override string ToString ()

Returns

A string that contains the IP address in either IPv4 dotted-quad or in IPv6 colon-hexadecimal notation.

Remarks

The IPAddress.ToString method converts the IP address that is stored in the IPAddress.Address property to either IPv4 dotted-quad or IPv6 colon-hexadecimal notation.

Requirements

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