IntPtr.ToString IntPtr.ToString IntPtr.ToString IntPtr.ToString Method

Definition

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

Overloads

ToString(String) ToString(String) ToString(String) ToString(String)

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

ToString() ToString() ToString() ToString()

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

ToString(String) ToString(String) ToString(String) ToString(String)

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

public:
 System::String ^ ToString(System::String ^ format);
public string ToString (string format);
override this.ToString : string -> string
Public Function ToString (format As String) As String

Parameters

format
String String String String

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

Returns

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

Remarks

If the format parameter is null 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.

See also

ToString() ToString() ToString() ToString()

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

public:
 override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String

Returns

The string representation of the value of this instance.

Remarks

If the value of the Size property for this instance is 4, then this method is equivalent to Int32.ToString; otherwise, this method is equivalent to Int64.ToString.

Applies to