GCHandle Explicit Konvertierung (GCHandle to IntPtr)
Veröffentlicht: Oktober 2016
Ein GCHandle mithilfe einer internen ganzzahldarstellung gespeichert.
Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Syntax
public static explicit operator IntPtr (
GCHandle value
)
public:
static explicit operator IntPtr (
GCHandle value
)
F# unterstützt diesen Operator nicht.
Public Shared Narrowing Operator CType (
value As GCHandle
) As IntPtr
Parameter
value
Type: System.Runtime.InteropServices.GCHandleDie GCHandle für die die ganze Zahl erforderlich ist.
Rückgabewert
Type: System.IntPtr
Der Ganzzahlwert.
Hinweise
Diese Methode kann verwendet werden, zum Abrufen des Ganzzahlwert von einem GCHandle.
Sicherheit
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.
Versionsinformationen
Universelle Windows-Plattform
Verfügbar seit 8
.NET Framework
Verfügbar seit 1.1
Portierbare Klassenbibliothek
Unterstützt in: portierbare .NET-Plattformen
Silverlight
Verfügbar seit 2.0
Windows Phone Silverlight
Verfügbar seit 7.0
Windows Phone
Verfügbar seit 8.1
Siehe auch
GCHandleType
Explicit Überladen
GCHandle-Struktur
System.Runtime.InteropServices-Namespace
Zurück zum Anfang