HandleRef(Object, IntPtr) 建構函式

定義

使用要包裝的物件和 Unmanaged 程式碼所使用的資源控制代碼,初始化 HandleRef 類別的新執行個體。

public:
 HandleRef(System::Object ^ wrapper, IntPtr handle);
public HandleRef (object? wrapper, IntPtr handle);
public HandleRef (object wrapper, IntPtr handle);
new System.Runtime.InteropServices.HandleRef : obj * nativeint -> System.Runtime.InteropServices.HandleRef
Public Sub New (wrapper As Object, handle As IntPtr)

參數

wrapper
Object

Managed 物件,不應該在平台叫用呼叫傳回前最終處理它。

handle
IntPtr

nativeint

指示資源控制代碼的 IntPtr

適用於