JSPropertyDescriptor.Function method
Creates a property descriptor with a method callback.
C#
public static JSPropertyDescriptor Function(string name, JSCallback method,
JSPropertyAttributes attributes = JSPropertyAttributes.Default, object? data = null)
See Also
- delegate JSCallback
- enum JSPropertyAttributes
- struct JSPropertyDescriptor
- namespace Microsoft.JavaScript.NodeApi