This documentation is archived and is not being maintained.

IPAddress.ToString Method

Converts an Internet address to its standard notation.

[Visual Basic]
Overrides Public Function ToString() As String
public override string ToString();
public: String* ToString();
public override function ToString() : String;

Return Value

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


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


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

IPAddress Class | IPAddress Members | System.Net Namespace