Class PropertyDescriptor
Object property descriptor.
public sealed record PropertyDescriptor : IEquatable<PropertyDescriptor>
- Inheritance
-
PropertyDescriptor
- Implements
- Inherited Members
Constructors
PropertyDescriptor(string, bool, bool)
Object property descriptor.
public PropertyDescriptor(string Name, bool Configurable, bool Enumerable)
Parameters
NamestringProperty name or symbol description.
ConfigurableboolTrue if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.
EnumerableboolTrue if this property shows up during enumeration of the properties on the corresponding object.
Properties
Configurable
True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.
public bool Configurable { get; init; }
Property Value
Enumerable
True if this property shows up during enumeration of the properties on the corresponding object.
public bool Enumerable { get; init; }
Property Value
Get
A function which serves as a getter for the property, or undefined if there is no getter (accessor descriptors only).
public RemoteObject? Get { get; init; }
Property Value
IsOwn
True if the property is owned for the object.
public bool? IsOwn { get; init; }
Property Value
- bool?
Name
Property name or symbol description.
public string Name { get; init; }
Property Value
Set
A function which serves as a setter for the property, or undefined if there is no setter (accessor descriptors only).
public RemoteObject? Set { get; init; }
Property Value
Symbol
Property symbol object, if the property is of the symbol type.
public RemoteObject? Symbol { get; init; }
Property Value
Value
The value associated with the property.
public RemoteObject? Value { get; init; }
Property Value
WasThrown
True if the result was thrown during the evaluation.
public bool? WasThrown { get; init; }
Property Value
- bool?
Writable
True if the value associated with the property may be changed (data descriptors only).
public bool? Writable { get; init; }
Property Value
- bool?