JSRuntime.CreateFunction method
C#
public virtual napi_status CreateFunction(napi_env env, string? name, napi_callback cb,
IntPtr data, out napi_value result)
See Also
- enum napi_status
- struct napi_env
- struct napi_callback
- struct napi_value
- class JSRuntime
- namespace Microsoft.JavaScript.NodeApi.Runtime