HandleRef(Object, IntPtr) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用要包装的对象和非托管代码使用的资源句柄初始化类的新实例 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
在平台调用调用返回之前,不应最终完成的托管对象。