CriticalHandle.SetHandle(IntPtr) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Imposta l'handle sull'handle esistente specificato.
protected:
void SetHandle(IntPtr handle);
protected void SetHandle(IntPtr handle);
member this.SetHandle : nativeint -> unit
Protected Sub SetHandle (handle As IntPtr)
Parametri
- handle
-
IntPtr
nativeint
Handle preesistente da usare.
Commenti
Usare il metodo SetHandle solo se è necessario supportare un handle preesistente, ad esempio se l'handle viene restituito in una struttura, perché l'infrastruttura di interoperabilità COM di .NET Framework non supporta il marshalling degli handle in una struttura.