Export (0) Print
Expand All

IntPtr Constructor (Int64)

.NET Framework 1.1

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

[Visual Basic]
Public Sub New( _
   ByVal value As Long _
)
[C#]
public IntPtr(
   long value
);
[C++]
public: IntPtr(
   __int64 value
);
[JScript]
public function IntPtr(
   value : long
);

Parameters

value
A pointer or handle contained in a 64-bit signed integer.

Exceptions

Exception Type Condition
OverflowException On a 32-bit platform, value is too large or too small to represent as an IntPtr.

Remarks

An exception is only thrown if the value of value requires more bits than the current platform supports.

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, Common Language Infrastructure (CLI) Standard

See Also

IntPtr Structure | IntPtr Members | System Namespace | IntPtr Constructor Overload List

Show:
© 2014 Microsoft