BaseWrapper(IntPtr, Boolean) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Base wrapper constructor, takes both a handle to an unmanaged Objective-C object, and a boolean indicating the ownership of the object.
public BaseWrapper (IntPtr handle, bool owns);
new ObjCRuntime.BaseWrapper : nativeint * bool -> ObjCRuntime.BaseWrapper
Parameters
- handle
-
IntPtr
nativeint
Handle to the unmanaged Objective-C object.
- owns
- Boolean
If true
, the object is already owned by managed code, if false
, the object is not owned, so the Objective-C method retain is invoked on the handle
object.