Skip to content

JsSetProperty

Limin Zhu edited this page Oct 9, 2015 · 1 revision

Puts an object's property.

Syntax

STDAPI_(JsErrorCode)
    JsSetProperty(
    _In_ JsValueRef object,
    _In_ JsPropertyIdRef propertyId,
    _In_ JsValueRef value,
    _In_ bool useStrictRules);

Parameters

  • object: The object that contains the property.
  • propertyId: The ID of the property.
  • value: The new value of the property.
  • useStrictRules: The property set should follow strict mode rules.

Return Value

The code JsNoError if the operation succeeded, a failure code otherwise.

Remarks

Requires an active script context.

Clone this wiki locally