18c339a94Sopenharmony_ci# PropertyLValue 
28c339a94Sopenharmony_ci
38c339a94Sopenharmony_ciThe `Napi::Object::PropertyLValue` class is a helper class provided by
48c339a94Sopenharmony_ci`Napi::Object` to allow more intuitive assignment of properties.
58c339a94Sopenharmony_ci
68c339a94Sopenharmony_ci## Example
78c339a94Sopenharmony_ci```cpp
88c339a94Sopenharmony_ci#include <napi.h>
98c339a94Sopenharmony_ci
108c339a94Sopenharmony_ciusing namespace Napi;
118c339a94Sopenharmony_ci
128c339a94Sopenharmony_ciVoid Init(Env env) {
138c339a94Sopenharmony_ci  // Create a new instance
148c339a94Sopenharmony_ci  Object obj = Object::New(env);
158c339a94Sopenharmony_ci
168c339a94Sopenharmony_ci  // Assign a value to a property. 
178c339a94Sopenharmony_ci  obj["hello"] = "world";
188c339a94Sopenharmony_ci}
198c339a94Sopenharmony_ci```
208c339a94Sopenharmony_ci
218c339a94Sopenharmony_ciIn the above example, `obj["hello"]` returns a `Napi::Object::PropertyLValue`
228c339a94Sopenharmony_ciwhose `operator=()` method accepts a string which will become the value of the
238c339a94Sopenharmony_ci"hello" property of the newly created object.
248c339a94Sopenharmony_ci
258c339a94Sopenharmony_ciIn general, `obj[key] = value` is the equivalent of `obj.Set(key, value)`, where
268c339a94Sopenharmony_cithe types of `key` and `value` are all those supported by
278c339a94Sopenharmony_ci[`Napi::Object::Set()`](object.md#set).
288c339a94Sopenharmony_ci
298c339a94Sopenharmony_ci## Methods
308c339a94Sopenharmony_ci
318c339a94Sopenharmony_ci### operator Value()
328c339a94Sopenharmony_ci
338c339a94Sopenharmony_ci```cpp
348c339a94Sopenharmony_cioperator Value() const;
358c339a94Sopenharmony_ci```
368c339a94Sopenharmony_ci
378c339a94Sopenharmony_ciImplicitly casts this `Napi::Object::PropertyLValue` to a `Napi::Value`.
388c339a94Sopenharmony_ci
398c339a94Sopenharmony_ci### operator =()
408c339a94Sopenharmony_ci
418c339a94Sopenharmony_ci```cpp
428c339a94Sopenharmony_citemplate <typename ValueType>
438c339a94Sopenharmony_ciPropertyLValue& operator =(ValueType value);
448c339a94Sopenharmony_ci```
458c339a94Sopenharmony_ci
468c339a94Sopenharmony_ci* `[in] value` a value to assign to the property referred to by the
478c339a94Sopenharmony_ci  `Napi::Object::PropertyLValue`. The type of the value is one of the types
488c339a94Sopenharmony_ci  supported by the second parameter of [`Napi::Object::Set()`](object.md#set).
498c339a94Sopenharmony_ci
508c339a94Sopenharmony_ciReturns a self-reference.
51