Runtime.TryGetNSObject(IntPtr) 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.
Looks up an existing wrapper object for an unmanaged IntPtr.
public static Foundation.NSObject TryGetNSObject (IntPtr ptr);
static member TryGetNSObject : nativeint -> Foundation.NSObject
Parameters
- ptr
-
IntPtr
nativeint
A pointer to an unmanaged NSObject or any class that derives from the Objective-C NSObject class.
Returns
If a managed wrapper exists for the specified IntPtr, that wrapper is returned, otherwise null.