JSRuntime.DefineClass method
C#
public virtual napi_status DefineClass(napi_env env, string name, napi_callback constructor,
IntPtr data, ReadOnlySpan<napi_property_descriptor> properties, out napi_value result)
See Also
- enum napi_status
- struct napi_env
- struct napi_callback
- struct napi_property_descriptor
- struct napi_value
- class JSRuntime
- namespace Microsoft.JavaScript.NodeApi.Runtime