JsDefineProperty() private method

private JsDefineProperty ( IeJsValue obj, IeJsPropertyId propertyId, IeJsValue propertyDescriptor, bool &result ) : JsErrorCode
obj IeJsValue
propertyId IeJsPropertyId
propertyDescriptor IeJsValue
result bool
return JsErrorCode
Beispiel #1
0
        /// <summary>
        /// Defines a new object's own property from a property descriptor
        /// </summary>
        /// <remarks>
        /// Requires an active script context.
        /// </remarks>
        /// <param name="propertyId">The ID of the property</param>
        /// <param name="propertyDescriptor">The property descriptor</param>
        /// <returns>Whether the property was defined</returns>
        public bool DefineProperty(IeJsPropertyId propertyId, IeJsValue propertyDescriptor)
        {
            bool result;

            IeJsErrorHelpers.ThrowIfError(IeNativeMethods.JsDefineProperty(this, propertyId, propertyDescriptor, out result));

            return(result);
        }