JSPropertyDescriptor constructor (1 of 2)
Creates a property descriptor with a name that can be either a string or symbol value.
C#
public JSPropertyDescriptor(JSValue name, JSCallback? method = null, JSCallback? getter = null,
JSCallback? setter = null, JSValue? value = default,
JSPropertyAttributes attributes = JSPropertyAttributes.Default, object? data = null)
See Also
- struct JSValue
- delegate JSCallback
- enum JSPropertyAttributes
- struct JSPropertyDescriptor
- namespace Microsoft.JavaScript.NodeApi
JSPropertyDescriptor constructor (2 of 2)
Creates a property descriptor with a string name.
C#
public JSPropertyDescriptor(string name, JSCallback? method = null, JSCallback? getter = null,
JSCallback? setter = null, JSValue? value = default,
JSPropertyAttributes attributes = JSPropertyAttributes.Default, object? data = null)
See Also
- delegate JSCallback
- struct JSValue
- enum JSPropertyAttributes
- struct JSPropertyDescriptor
- namespace Microsoft.JavaScript.NodeApi