JSCallbackOverload.Resolve method
Selects one of multiple callback overloads by finding the best match of the supplied arguments to method parameter counts and types.
C#
public static JSCallbackOverload Resolve(IReadOnlyList<JSCallbackOverload> overloads,
JSCallbackArgs args)
parameter | description |
---|---|
overloads | List of overloads to be matched. |
args | Callback arguments that will be matched against overload parameter counts and types. |
Return Value
Callback for the resolved overload.
Exceptions
exception | condition |
---|---|
JSException | No overload or multiple overloads were found for the supplied arguments. |
See Also
- struct JSCallbackArgs
- struct JSCallbackOverload
- namespace Microsoft.JavaScript.NodeApi.Interop