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