Runtime.RetainAndAutoreleaseNSObject(NSObject) Method
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.
Retain and autorelease the given object, then return the object's handle.
public static ObjCRuntime.NativeHandle RetainAndAutoreleaseNSObject(Foundation.NSObject? obj);
static member RetainAndAutoreleaseNSObject : Foundation.NSObject -> ObjCRuntime.NativeHandle
Parameters
- obj
- NSObject
The object to retain and autorelease.
Returns
The object's handle (retained and autorelease).