JsBooleanToBool() private method

private JsBooleanToBool ( IeJsValue booleanValue, bool &boolValue ) : JsErrorCode
booleanValue IeJsValue
boolValue bool
return JsErrorCode
示例#1
0
        /// <summary>
        /// Retrieves a <c>bool</c> value of a <c>Boolean</c> value
        /// </summary>
        /// <remarks>
        /// Requires an active script context.
        /// </remarks>
        /// <returns>The converted value</returns>
        public bool ToBoolean()
        {
            bool value;

            IeJsErrorHelpers.ThrowIfError(IeNativeMethods.JsBooleanToBool(this, out value));

            return(value);
        }