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 资源的句柄。

适用于