This documentation is archived and is not being maintained.

Int32 to IntPtr Conversion

.NET Framework 1.1

Converts the value of a 32-bit signed integer to an IntPtr.

[Visual Basic]
returnValue = IntPtr.op_Explicit(value)
[C#]
public static explicit operator IntPtr(
 int value
);
[C++]
public: static IntPtr op_Explicit(
 int value
);
[JScript]
returnValue = IntPtr(value);

[Visual Basic] In Visual Basic, you can use the conversion operators defined by a type, but you cannot define your own.

[JScript] In JScript, you can use the conversion operators defined by a type, but you cannot define your own.

Arguments [Visual Basic, JScript]

value
A 32-bit signed integer.

Parameters [C#, C++]

value
A 32-bit signed integer.

Return Value

A new instance of IntPtr initialized to value.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

IntPtr Structure | IntPtr Members | System Namespace | IntPtr

Show: