Share via


JsDeleteProperty Function

Deletes an object's property.

Syntax

STDAPI_(JsErrorCode) JsDeleteProperty(  
   _In_ JsValueRef object,  
   _In_ JsPropertyIdRef propertyId,  
   _In_ bool useStrictRules,  
   _Out_ JsValueRef *result  
);  

Parameters

object
The object that contains the property.

propertyId
The ID of 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

Requires an active script context.

Requirements

Header: jsrt.h

See Also

Reference (JavaScript Runtime)