MsieJavaScriptEngine.JsRt.Native.JsHasIndexedProperty C# (CSharp) Method

JsHasIndexedProperty() private method

private JsHasIndexedProperty ( JavaScriptValue obj, JavaScriptValue index, bool &result ) : JavaScriptErrorCode
obj JavaScriptValue
index JavaScriptValue
result bool
return JavaScriptErrorCode
        internal static extern JavaScriptErrorCode JsHasIndexedProperty(JavaScriptValue obj, JavaScriptValue index, out bool result);

Usage Example

        /// <summary>
        /// Test if an object has a value at the specified index.
        /// </summary>
        /// <remarks>
        /// Requires an active script context.
        /// </remarks>
        /// <param name="index">The index to test.</param>
        /// <returns>Whether the object has an value at the specified index.</returns>
        public bool HasIndexedProperty(JavaScriptValue index)
        {
            bool hasProperty;

            Native.ThrowIfError(Native.JsHasIndexedProperty(this, index, out hasProperty));
            return(hasProperty);
        }
Native