This documentation is archived and is not being maintained.

SocketAddress.ToString Method

Returns information about the socket address.

[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 information about the SocketAddress.


The ToString method returns a string containing the AddressFamily enumerated value, the size of the underlying buffer of the SocketAddress structure, and the remaining contents of the buffer.


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

SocketAddress Class | SocketAddress Members | System.Net Namespace