Share via


BaseWrapper(IntPtr, Boolean) 构造函数

定义

基本包装器构造函数采用非托管 Objective-C 对象的句柄和指示对象所有权的布尔值。

public BaseWrapper (IntPtr handle, bool owns);
new ObjCRuntime.BaseWrapper : nativeint * bool -> ObjCRuntime.BaseWrapper

参数

handle
IntPtr

nativeint

非托管 Objective-C 对象的句柄。

owns
Boolean

如果 true为 ,则对象已由托管代码拥有,如果 false为 ,则对象不为所有,因此将在 对象上 handle 调用 Objective-C 保留方法。

注解

适用于