Edit

Share via


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

Definition

Returns the internal integer representation of a PinnedGCHandle<T> object.

public:
 static IntPtr ToIntPtr(System::Runtime::InteropServices::PinnedGCHandle<T> value);
public static IntPtr ToIntPtr(System.Runtime.InteropServices.PinnedGCHandle<T> value);
static member ToIntPtr : System.Runtime.InteropServices.PinnedGCHandle<'T (requires 'T : null)> -> nativeint
Public Shared Function ToIntPtr (value As PinnedGCHandle(Of T)) As IntPtr

Parameters

value
PinnedGCHandle<T>

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

Returns

IntPtr

nativeint

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

Remarks

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

Applies to