Skip to content

JsHasOwnProperty

Limin Zhu edited this page Jul 12, 2017 · 4 revisions

Determines whether an object has a non-inherited property.

Syntax

STDAPI_(JsErrorCode)
    JsHasOwnProperty(
    _In_ JsValueRef object,
    _In_ JsPropertyIdRef propertyId,
    _Out_ bool *hasOwnProperty);

Parameters

  • object: The object that may contain the property.
  • propertyId: The ID of the property.
  • hasOwnProperty: Whether the object has the non-inherited property.

Return Value

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

Remarks

This API is experimental and may have breaking change later.

Requires an active script context.

Clone this wiki locally