HandleRef(Object, IntPtr) 建構函式

定義

初始化一個新的類別實例 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

一個受管理物件,直到平台呼叫返回後才應該被最終確定。

handle
IntPtr

nativeint

一個 IntPtr 表示一個資源的 handle。

適用於