Share via


Selector.FromHandle Method

Definition

Overloads

Name Description
FromHandle(NativeHandle)
FromHandle(NativeHandle, Boolean)

Creates a managed Selector instance from a native selector.

FromHandle(NativeHandle)

public static ObjCRuntime.Selector? FromHandle(ObjCRuntime.NativeHandle sel);
static member FromHandle : ObjCRuntime.NativeHandle -> ObjCRuntime.Selector

Parameters

Returns

Applies to

FromHandle(NativeHandle, Boolean)

Creates a managed Selector instance from a native selector.

public static ObjCRuntime.Selector? FromHandle(ObjCRuntime.NativeHandle selector, bool owns);
static member FromHandle : ObjCRuntime.NativeHandle * bool -> ObjCRuntime.Selector

Parameters

selector
NativeHandle

The native selector handle.

owns
Boolean

Whether the caller owns the native selector handle or not.

Returns

Remarks

It's not possible to free a selector, so the owns parameter is ignored.

Applies to