Selector.FromHandle 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.
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
- sel
- NativeHandle
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.