A JavaScript value.
A JavaScript value is one of the following types of values: Undefined, Null, Boolean, String, Number, or Object.
コード例 #1
0
 internal static extern JavaScriptErrorCode JsGetOwnPropertyDescriptor(JavaScriptValue obj, JavaScriptPropertyId propertyId, out JavaScriptValue propertyDescriptor);
コード例 #2
0
 internal static extern JavaScriptErrorCode JsVariantToValue([MarshalAs(UnmanagedType.Struct)] ref object var, out JavaScriptValue value);
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JavaScriptScriptException"/> class.
 /// </summary>
 /// <param name="code">The error code returned.</param>
 /// <param name="error">The JavaScript error object.</param>
 public JavaScriptScriptException(JavaScriptErrorCode code, JavaScriptValue error)
     : this(code, error, "JavaScript Exception")
 {
 }
コード例 #4
0
 internal static extern JavaScriptErrorCode JsSetPrototype(JavaScriptValue obj, JavaScriptValue prototypeObject);
コード例 #5
0
 internal static extern JavaScriptErrorCode JsStringToPointer(JavaScriptValue value, out IntPtr stringValue, out UIntPtr stringLength);
コード例 #6
0
 internal static extern JavaScriptErrorCode JsSetException(JavaScriptValue exception);
コード例 #7
0
 internal static extern JavaScriptErrorCode JsSetIndexedProperty(JavaScriptValue obj, JavaScriptValue index, JavaScriptValue value);
コード例 #8
0
 internal static extern JavaScriptErrorCode JsGetValueType(JavaScriptValue value, out JavaScriptValueType type);
コード例 #9
0
 internal static extern JavaScriptErrorCode JsHasExternalData(JavaScriptValue obj, out bool value);
コード例 #10
0
 internal static extern JavaScriptErrorCode JsGetTrueValue(out JavaScriptValue trueValue);
コード例 #11
0
 internal static extern JavaScriptErrorCode JsGetUndefinedValue(out JavaScriptValue undefinedValue);
コード例 #12
0
 internal static extern JavaScriptErrorCode JsGetStringLength(JavaScriptValue sringValue, out int length);
コード例 #13
0
 internal static extern JavaScriptErrorCode JsGetProperty(JavaScriptValue obj, JavaScriptPropertyId propertyId, out JavaScriptValue value);
コード例 #14
0
 internal static extern JavaScriptErrorCode JsGetOwnPropertyNames(JavaScriptValue obj, out JavaScriptValue propertyNames);
コード例 #15
0
 internal static extern JavaScriptErrorCode JsRunScript(string script, JavaScriptSourceContext sourceContext, string sourceUrl, out JavaScriptValue result);
コード例 #16
0
 internal static extern JavaScriptErrorCode JsHasIndexedProperty(JavaScriptValue obj, JavaScriptValue index, out bool result);
コード例 #17
0
 internal static extern JavaScriptErrorCode JsRunSerializedScript(string script, byte[] buffer, JavaScriptSourceContext sourceContext, string sourceUrl, out JavaScriptValue result);
コード例 #18
0
 internal static extern JavaScriptErrorCode JsHasProperty(JavaScriptValue obj, JavaScriptPropertyId propertyId, out bool hasProperty);
コード例 #19
0
 internal static extern JavaScriptErrorCode JsSetExternalData(JavaScriptValue obj, IntPtr externalData);
コード例 #20
0
 internal static extern JavaScriptErrorCode JsIntToNumber(int intValue, out JavaScriptValue value);
コード例 #21
0
 internal static extern JavaScriptErrorCode JsSetProperty(JavaScriptValue obj, JavaScriptPropertyId propertyId, JavaScriptValue value, bool useStrictRules);
コード例 #22
0
 internal static extern JavaScriptErrorCode JsNumberToDouble(JavaScriptValue value, out double doubleValue);
コード例 #23
0
 internal static extern JavaScriptErrorCode JsStrictEquals(JavaScriptValue obj1, JavaScriptValue obj2, out bool result);
コード例 #24
0
 internal static extern JavaScriptErrorCode JsPointerToString(string value, UIntPtr stringLength, out JavaScriptValue stringValue);
コード例 #25
0
 internal static extern JavaScriptErrorCode JsValueToVariant(JavaScriptValue obj, [MarshalAs(UnmanagedType.Struct)] out object var);
コード例 #26
0
 internal static extern JavaScriptErrorCode JsPreventExtension(JavaScriptValue obj);
コード例 #27
0
 /// <summary>
 /// Sets the runtime of the current context to an exception state.
 /// </summary>
 /// <remarks>
 /// <para>
 /// If the runtime of the current context is already in an exception state, this API will 
 /// throw <c>JsErrorInExceptionState</c>.
 /// </para>
 /// <para>
 /// Requires an active script context.
 /// </para>
 /// </remarks>
 /// <param name="exception">
 /// The JavaScript exception to set for the runtime of the current context.
 /// </param>
 public static void SetException(JavaScriptValue exception)
 {
     Native.ThrowIfError(Native.JsSetException(exception));
 }
コード例 #28
0
 internal static extern JavaScriptErrorCode JsRelease(JavaScriptValue reference, out uint count);
コード例 #29
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JavaScriptScriptException"/> class.
 /// </summary>
 /// <param name="code">The error code returned.</param>
 /// <param name="error">The JavaScript error object.</param>
 /// <param name="message">The error message.</param>
 public JavaScriptScriptException(JavaScriptErrorCode code, JavaScriptValue error, string message)
     : base(code, message)
 {
     _error = error;
 }
コード例 #30
0
 internal static extern JavaScriptErrorCode JsGetNullValue(out JavaScriptValue nullValue);