Share via


CriticalHandle.SetHandle(IntPtr) Metodo

Definizione

Imposta l'handle sull'handle preesistente 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 SetHandle metodo 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.

Si applica a