JsHasProperty() private method

private JsHasProperty ( IeJsValue obj, IeJsPropertyId propertyId, bool &hasProperty ) : JsErrorCode
obj IeJsValue
propertyId IeJsPropertyId
hasProperty bool
return JsErrorCode
Exemplo n.º 1
0
        /// <summary>
        /// Determines whether an object has a property
        /// </summary>
        /// <remarks>
        /// Requires an active script context.
        /// </remarks>
        /// <param name="propertyId">The ID of the property</param>
        /// <returns>Whether the object (or a prototype) has the property</returns>
        public bool HasProperty(IeJsPropertyId propertyId)
        {
            bool hasProperty;

            IeJsErrorHelpers.ThrowIfError(IeNativeMethods.JsHasProperty(this, propertyId, out hasProperty));

            return(hasProperty);
        }