GCHandle.Explicit Operatore

Definizione

Converte il valore di un oggetto GCHandle in un altro tipo.

Overload

Explicit(IntPtr to GCHandle)

Oggetto GCHandle archiviato utilizzando una rappresentazione interna di valori interi.

Explicit(GCHandle to IntPtr)

Oggetto GCHandle archiviato utilizzando una rappresentazione interna di valori interi.

Explicit(IntPtr to GCHandle)

Origine:
GCHandle.cs
Origine:
GCHandle.cs
Origine:
GCHandle.cs

Oggetto GCHandle archiviato utilizzando una rappresentazione interna di valori interi.

public:
 static explicit operator System::Runtime::InteropServices::GCHandle(IntPtr value);
[System.Security.SecurityCritical]
public static explicit operator System.Runtime.InteropServices.GCHandle (IntPtr value);
public static explicit operator System.Runtime.InteropServices.GCHandle (IntPtr value);
[<System.Security.SecurityCritical>]
static member op_Explicit : nativeint -> System.Runtime.InteropServices.GCHandle
static member op_Explicit : nativeint -> System.Runtime.InteropServices.GCHandle
Public Shared Narrowing Operator CType (value As IntPtr) As GCHandle

Parametri

value
IntPtr

nativeint

Oggetto IntPtr che indica l'handle per il quale è richiesta la conversione.

Restituisce

Oggetto GCHandle archiviato utilizzando una rappresentazione interna di valori interi.

Attributi

Commenti

Questo metodo consente di recuperare un GCHandle oggetto da un valore intero.

Vedi anche

Si applica a

Explicit(GCHandle to IntPtr)

Origine:
GCHandle.cs
Origine:
GCHandle.cs
Origine:
GCHandle.cs

Oggetto GCHandle archiviato utilizzando una rappresentazione interna di valori interi.

public:
 static explicit operator IntPtr(System::Runtime::InteropServices::GCHandle value);
public static explicit operator IntPtr (System.Runtime.InteropServices.GCHandle value);
static member op_Explicit : System.Runtime.InteropServices.GCHandle -> nativeint
Public Shared Narrowing Operator CType (value As GCHandle) As IntPtr

Parametri

value
GCHandle

Oggetto GCHandle per il quale viene richiesto il valore intero.

Restituisce

IntPtr

nativeint

Valore Integer.

Commenti

Questo metodo può essere utilizzato per recuperare il valore intero da un oggetto GCHandle.

Vedi anche

Si applica a