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

Definition

Gibt die interne ganzzahlige Darstellung eines GCHandle<T> Objekts zurück.

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

Parameter

value
GCHandle<T>

Ein GCHandle<T> Objekt, aus dem eine interne ganzzahlige Darstellung abgerufen werden soll.

Gibt zurück

IntPtr

nativeint

Ein IntPtr Objekt, das ein GCHandle<T> Objekt darstellt.

Hinweise

Die IntPtr Darstellung von GCHandle<T> ist nicht interchangable mit GCHandle.

Gilt für: