Edit

Share via


GCHandle<T>.ToIntPtr(GCHandle<T>) Method

Definition

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)> -> nativeint
Public Shared Function ToIntPtr (value As GCHandle(Of T)) As IntPtr

Parameters

value
GCHandle<T>

A GCHandle<T> object to retrieve an internal integer representation from.

Returns

IntPtr

nativeint

An IntPtr object that represents a GCHandle<T> object.

Remarks

The IntPtr representation of GCHandle<T> is not interchangable with GCHandle.

Applies to