Marshal.InitHandle(SafeHandle, IntPtr) Méthode
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.
Initialise le handle sous-jacent d’un nouvellement créé SafeHandle à la valeur fournie.
public:
static void InitHandle(System::Runtime::InteropServices::SafeHandle ^ safeHandle, IntPtr handle);
public static void InitHandle(System.Runtime.InteropServices.SafeHandle safeHandle, IntPtr handle);
static member InitHandle : System.Runtime.InteropServices.SafeHandle * nativeint -> unit
Public Shared Sub InitHandle (safeHandle As SafeHandle, handle As IntPtr)
Paramètres
- safeHandle
- SafeHandle
SafeHandle instance à mettre à jour
- handle
-
IntPtr
nativeint
Handle préexistant