System.IntPtr Structure
An implementation-specific type that is used to represent a pointer or a handle.

See Also: IntPtr Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public struct IntPtr : System.Runtime.Serialization.ISerializable

Remarks

The IntPtr type is designed to be an implementation-sized pointer. An instance of this type is expected to be the size of a native int for the current implementation.

For more information on the native int type, see Partition II of the CLI Specification.

Note:

The IntPtr type provides CLS-compliant pointer functionality.

IntPtr instances can also be used to hold handles.

The IntPtr type is CLS-compliant while the UIntPtr type is not. The UIntPtr type is provided mostly to maintain architectural symmetry with the IntPtr type.

Thread Safety

This type is safe for multithreaded operations.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0