Upravit

Sdílet prostřednictvím


Runtime.TryGetNSObject(IntPtr) Method

Definition

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.

Remarks

Applies to