System.IntPtr Members

The members of System.IntPtr are listed below.

See Also: Inherited members from System.ValueType

Public Constructors

Initializes a new instance of IntPtr using the specified 32-bit pointer or handle.

Initializes a new instance of IntPtr using the specified 64-bit pointer.

Initializes a new instance of IntPtr using the specified pointer to an unspecified type.

Public Fields

static readonly
ZeroIntPtr (0).

A read-only field that represents a pointer or handle that has been initialized to zero.

Public Properties

[read-only]
static
Sizeint (4).

Gets the size of this instance.

Public Methods

static
Add(IntPtr, int) : IntPtr

Adds an offset to the value of a pointer.

override
Equals(object) : bool

Returns a value indicating whether this instance is equal to a specified object.

override
GetHashCode() : int

Returns the hash code for this instance.

static
Subtract(IntPtr, int) : IntPtr

Subtracts an offset from the value of a pointer.

ToInt32() : int

Converts the value of this instance to a 32-bit signed integer.

ToInt64() : long

Converts the value of this instance to a 64-bit signed integer.

ToPointer() : void*

Converts the value of this instance to a pointer to an unspecified type.

override
ToString() : string

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

ToString(string) : string

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

Public Operators

static
Addition(IntPtr, int)

Adds an offset to the value of a pointer.

static
Equality(IntPtr, IntPtr)

Determines whether two specified instances of IntPtr are equal.

static
Inequality(IntPtr, IntPtr)

Determines whether two specified instances of IntPtr are not equal.

static
Subtraction(IntPtr, int)

Subtracts an offset from the value of a pointer.

static
Conversion to System.IntPtr(Explicit)Documentation for this section has not yet been entered.
static
Conversion to System.IntPtr(Explicit)Documentation for this section has not yet been entered.
static
Conversion to System.Int32(Explicit)Documentation for this section has not yet been entered.
static
Conversion to System.Int64(Explicit)Documentation for this section has not yet been entered.
static
Conversion to System.Void*(Explicit)Documentation for this section has not yet been entered.
static
Conversion to System.IntPtr(Explicit)Documentation for this section has not yet been entered.

Explicitly Implemented Interface Members

System.Runtime.Serialization.ISerializable.GetObjectData

Populates a System.Runtime.Serialization.SerializationInfo object with the data needed to serialize the current IntPtr object.