Skip to content

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


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

Released under the MIT license