Méthode | Description | |
---|---|---|
FromObject ( |
Creates a property descriptor from an object containing any of the following properties: configurable, writable, enumerable, value, get, set.
|
|
PropertyDescriptor ( |
Creates a new PropertyDescriptor instance with a getter function and, optionally, a setter function.
|
|
PropertyDescriptor ( object value, PropertyAttributes attributes ) : System |
Creates a new PropertyDescriptor instance.
|
|
ToObject ( ScriptEngine engine ) : |
Populates an object with the following properties: configurable, writable, enumerable, value, get, set.
|
|
ToString ( ) : string |
Gets the property value, calling the get accessor, if present. Returns a string representing the current object.
|
public static FromObject ( |
||
obj | The object to get the property values from. | |
defaults | The values to use if the relevant value is not specified. | |
Résultat |
public PropertyDescriptor ( |
||
getter | The function to call to retrieve the property value. | |
setter | The function to call to set the property value. | |
attributes | PropertyAttributes | The property attributes (whether the property is writable or /// not is implied by whether there is a setter function). |
Résultat | System |
public PropertyDescriptor ( object value, PropertyAttributes attributes ) : System | ||
value | object | The initial value for the property. |
attributes | PropertyAttributes | The property attributes. |
Résultat | System |
public ToObject ( ScriptEngine engine ) : |
||
engine | ScriptEngine | The script engine used to create a new object. |
Résultat |