JsDeleteProperty() private méthode

private JsDeleteProperty ( IeJsValue obj, IeJsPropertyId propertyId, bool useStrictRules, IeJsValue &result ) : JsErrorCode
obj IeJsValue
propertyId IeJsPropertyId
useStrictRules bool
result IeJsValue
Résultat JsErrorCode
Exemple #1
0
        /// <summary>
        /// Deletes a object's property
        /// </summary>
        /// <remarks>
        /// Requires an active script context.
        /// </remarks>
        /// <param name="propertyId">The ID of the property</param>
        /// <param name="useStrictRules">The property set should follow strict mode rules</param>
        /// <returns>Whether the property was deleted</returns>
        public IeJsValue DeleteProperty(IeJsPropertyId propertyId, bool useStrictRules)
        {
            IeJsValue returnReference;

            IeJsErrorHelpers.ThrowIfError(IeNativeMethods.JsDeleteProperty(this, propertyId, useStrictRules, out returnReference));

            return(returnReference);
        }