ToString Method (String)
Collapse the table of content
Expand the table of content

IntPtr.ToString Method (String)

Converts the numeric value of the current IntPtr object to its equivalent string representation.

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

public string ToString (
	string format
public String ToString (
	String format
public function ToString (
	format : String
) : String
Not applicable.



A format specification that governs how the current IntPtr object is converted.

Return Value

The string representation of the value of the current IntPtr object.

If the format parameter is a null reference (Nothing in Visual Basic) or an empty string (""), the return value is formatted with the general format specifier ("G"). For more information about numeric format specifiers, see the Standard Numeric Format Strings topic.

The return value is formatted using the invariant culture.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

© 2016 Microsoft