GCHandle.Explicit Opérateur
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Convertit la valeur d’un GCHandle objet en un autre type.
Surcharges
| Nom | Description |
|---|---|
| Explicit(IntPtr to GCHandle) |
Un GCHandle est stocké à l’aide d’une représentation entière interne. |
| Explicit(GCHandle to IntPtr) |
Un GCHandle est stocké à l’aide d’une représentation entière interne. |
Explicit(IntPtr to GCHandle)
Un GCHandle est stocké à l’aide d’une représentation entière interne.
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
Paramètres
Retours
Objet stocké GCHandle à l’aide d’une représentation entière interne.
- Attributs
Remarques
Cette méthode vous permet de récupérer une GCHandle valeur entière à partir d’une valeur entière.
Voir aussi
S’applique à
Explicit(GCHandle to IntPtr)
Un GCHandle est stocké à l’aide d’une représentation entière interne.
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
Paramètres
Retours
nativeint
Valeur entière.
Remarques
Cette méthode peut être utilisée pour récupérer la valeur entière d’un GCHandle.