Share via


HwndSource.CreateHandleRef Metodo

Definizione

Ottiene l'handle della finestra per HwndSource. L'handle della finestra viene incluso come parte di una struttura HandleRef.

public:
 System::Runtime::InteropServices::HandleRef CreateHandleRef();
public System.Runtime.InteropServices.HandleRef CreateHandleRef ();
member this.CreateHandleRef : unit -> System.Runtime.InteropServices.HandleRef
Public Function CreateHandleRef () As HandleRef

Restituisce

HandleRef

Struttura che contiene l'handle della finestra per questo oggetto HwndSource.

Commenti

È possibile usare l'handle ottenuto da CreateHandleRef per fare riferimento al HwndSource codice Win32. Usare l'handle per operazioni come la gestione dei messaggi e il comportamento della finestra.

Per ottenere solo l'handle, usare Handle.

Si applica a

Vedi anche