Windows Dev Center

IntPtr::op_explicit Operator

Converts the specified parameter to an IntPtr or a pointer to an IntPtr value.

   static IntPtr::operator IntPtr( void* value1);
   static IntPtr::operator IntPtr( int value2);
   static IntPtr::operator void*( IntPtr value3 );


A pointer to a handle or IntPtr.


An 32-bit integer that can be converted to an IntPtr.


An IntPtr.

The first and second operators return an IntPtr. The third operator returns a pointer to the value represented by the current IntPtr.

Minimum supported client: Windows 8

Minimum supported server: Windows Server 2012

Namespace: Platform

Metadata: platform.winmd

© 2015 Microsoft