Export (0) Print
Expand All

IntPtr Constructor

.NET Framework 1.1

Initializes a new instance of IntPtr.

Overload List

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

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(Integer)
[C#] public IntPtr(int);
[C++] public: IntPtr(int);
[JScript] public function IntPtr(int);

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

Supported by the .NET Compact Framework.

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

[C#, C++] Initializes a new instance of IntPtr using the specified pointer to an unspecified type. This constructor is not CLS-compliant.

Supported by the .NET Compact Framework.

[C#] unsafe public IntPtr(void*);
[C++] public: IntPtr(void*);

See Also

IntPtr Structure | IntPtr Members | System Namespace

Show:
© 2014 Microsoft