CriticalHandle.SetHandle(IntPtr) Metoda

Definicja

Ustawia uchwyt do określonego wstępnie istniejącego uchwytu.

protected:
 void SetHandle(IntPtr handle);
protected void SetHandle (IntPtr handle);
member this.SetHandle : nativeint -> unit
Protected Sub SetHandle (handle As IntPtr)

Parametry

handle
IntPtr

nativeint

Istniejący uchwyt do użycia.

Uwagi

SetHandle Użyj metody tylko wtedy, gdy potrzebujesz wstępnie istniejącego uchwytu (na przykład jeśli uchwyt jest zwracany w strukturze), ponieważ infrastruktura międzyoperacyjna modelu COM .NET Framework nie obsługuje obsługi marshalingu w strukturze.

Dotyczy