IntPtr Structure
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
A platform-specific type that is used to represent a pointer or a handle.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public Structure IntPtr
[SerializableAttribute]
public struct IntPtr
[SerializableAttribute]
public value class IntPtr
[<Sealed>]
[<SerializableAttribute>]
type IntPtr = struct end
JScript supports the use of structures, but not the declaration of new ones.
The IntPtr type exposes the following members.
Methods
Name | Description | |
---|---|---|
Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
The IntPtr type is designed to be an integer whose size is platform-specific. That is, an instance of this type is expected to be 32-bits on 32-bit hardware and operating systems, and 64-bits on 64-bit hardware and operating systems.
The IntPtr type can be used by languages that support pointers, and as a common means of referring to data between languages that do and do not support pointers.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.