Skip to content

JsObjectDeleteProperty

rhuanjl edited this page Sep 1, 2018 · 1 revision

Deletes an object's property.

Syntax

CHAKRA_API
    JsObjectDeleteProperty(
        _In_ JsValueRef object,
        _In_ JsValueRef key,
        _In_ bool useStrictRules,
        _Out_ JsValueRef *result);

Parameters

  • object: The object that contains the property.
  • key: The key (JavascriptString or JavascriptSymbol) to the property.
  • useStrictRules: The property set should follow strict mode rules.
  • result: Whether the property was deleted.

Return Value

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

Remarks

This API is experimental and may have breaking changes later.

Requires an active script context.

Clone this wiki locally