JsHasProperty() 개인적인 메소드

private JsHasProperty ( IeJsValue obj, IeJsPropertyId propertyId, bool &hasProperty ) : JsErrorCode
obj IeJsValue
propertyId IeJsPropertyId
hasProperty bool
리턴 JsErrorCode
예제 #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);
        }