IntPtr Methods

IntPtr Methods

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The IntPtr type exposes the following members.

  NameDescription
Public method Static member Add Adds an offset to the value of a pointer.
Public method Equals Returns a value indicating whether this instance is equal to a specified object. (Overrides ValueType.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Returns the hash code for this instance. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member Subtract Subtracts an offset from the value of a pointer.
Public method ToInt32 Converts the value of this instance to a 32-bit signed integer.
Public method ToInt64 Converts the value of this instance to a 64-bit signed integer.
Public method ToPointer Converts the value of this instance to a pointer to an unspecified type.
Public method ToString() Converts the numeric value of the current IntPtr object to its equivalent string representation. (Overrides ValueType.ToString().)
Public method ToString(String) Converts the numeric value of the current IntPtr object to its equivalent string representation.
Top

Show:
© 2017 Microsoft