GCHandle<T>.ToIntPtr(GCHandle<T>) Method  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the internal integer representation of a GCHandle<T> object.
public:
 static IntPtr ToIntPtr(System::Runtime::InteropServices::GCHandle<T> value);public static IntPtr ToIntPtr(System.Runtime.InteropServices.GCHandle<T> value);static member ToIntPtr : System.Runtime.InteropServices.GCHandle<'T (requires 'T : null)> -> nativeintPublic Shared Function ToIntPtr (value As GCHandle(Of T)) As IntPtrParameters
- value
- GCHandle<T>
A GCHandle<T> object to retrieve an internal integer representation from.
Returns
nativeint
An IntPtr object that represents a GCHandle<T> object.
Remarks
The IntPtr representation of GCHandle<T> is not interchangable with GCHandle.