本文整理汇总了C#中MsieJavaScriptEngine.JsRt.JavaScriptValue类的典型用法代码示例。如果您正苦于以下问题:C# JavaScriptValue类的具体用法?C# JavaScriptValue怎么用?C# JavaScriptValue使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JavaScriptValue类属于MsieJavaScriptEngine.JsRt命名空间,在下文中一共展示了JavaScriptValue类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: JsGetOwnPropertyDescriptor
internal static extern JavaScriptErrorCode JsGetOwnPropertyDescriptor(JavaScriptValue obj, JavaScriptPropertyId propertyId, out JavaScriptValue propertyDescriptor);
示例2: JsVariantToValue
internal static extern JavaScriptErrorCode JsVariantToValue([MarshalAs(UnmanagedType.Struct)] ref object var, out JavaScriptValue value);
示例3: JavaScriptScriptException
/// <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: JsSetPrototype
internal static extern JavaScriptErrorCode JsSetPrototype(JavaScriptValue obj, JavaScriptValue prototypeObject);
示例5: JsStringToPointer
internal static extern JavaScriptErrorCode JsStringToPointer(JavaScriptValue value, out IntPtr stringValue, out UIntPtr stringLength);
示例6: JsSetException
internal static extern JavaScriptErrorCode JsSetException(JavaScriptValue exception);
示例7: JsSetIndexedProperty
internal static extern JavaScriptErrorCode JsSetIndexedProperty(JavaScriptValue obj, JavaScriptValue index, JavaScriptValue value);
示例8: JsGetValueType
internal static extern JavaScriptErrorCode JsGetValueType(JavaScriptValue value, out JavaScriptValueType type);
示例9: JsHasExternalData
internal static extern JavaScriptErrorCode JsHasExternalData(JavaScriptValue obj, out bool value);
示例10: JsGetTrueValue
internal static extern JavaScriptErrorCode JsGetTrueValue(out JavaScriptValue trueValue);
示例11: JsGetUndefinedValue
internal static extern JavaScriptErrorCode JsGetUndefinedValue(out JavaScriptValue undefinedValue);
示例12: JsGetStringLength
internal static extern JavaScriptErrorCode JsGetStringLength(JavaScriptValue sringValue, out int length);
示例13: JsGetProperty
internal static extern JavaScriptErrorCode JsGetProperty(JavaScriptValue obj, JavaScriptPropertyId propertyId, out JavaScriptValue value);
示例14: JsGetOwnPropertyNames
internal static extern JavaScriptErrorCode JsGetOwnPropertyNames(JavaScriptValue obj, out JavaScriptValue propertyNames);
示例15: JsRunScript
internal static extern JavaScriptErrorCode JsRunScript(string script, JavaScriptSourceContext sourceContext, string sourceUrl, out JavaScriptValue result);