SafeHandle.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

Utilizzare 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 .NET Framework non supporta il marshalling degli handle di output in una struttura.

Si applica a