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

Definition

Returnerar den interna heltalsrepresentationen av ett PinnedGCHandle<T> objekt.

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

Parametrar

value
PinnedGCHandle<T>

Ett PinnedGCHandle<T> objekt som en intern heltalsrepresentation ska hämtas från.

Returer

IntPtr

nativeint

Ett IntPtr objekt som representerar ett PinnedGCHandle<T> objekt.

Kommentarer

Representationen IntPtr av PinnedGCHandle<T> kan inte ändras med GCHandle.

Gäller för