메소드 | 설명 | |
---|---|---|
PropertyNameAndValue ( object key, |
Initializes a getter/setter property.
|
|
PropertyNameAndValue ( object key, |
Initializes a property with any descriptor.
|
|
PropertyNameAndValue ( object key, object value, PropertyAttributes attributes ) |
Initializes a simple property.
|
public PropertyNameAndValue ( object key, |
||
key | object | The property key (either a string or a Symbol). |
getter | The function to call to retrieve the property value. | |
setter | The function to call to set the property value. | |
attributes | PropertyAttributes | Indicates whether the property is readable, writable and/or enumerable. |
public PropertyNameAndValue ( object key, |
||
key | object | The property key (either a string or a Symbol). |
descriptor | A descriptor describing the property. |
public PropertyNameAndValue ( object key, object value, PropertyAttributes attributes ) | ||
key | object | The property key (either a string or a Symbol). |
value | object | The property value. |
attributes | PropertyAttributes | Indicates whether the property is readable, writable and/or enumerable. |