當前位置: 首頁>>代碼示例>>C#>>正文


C# JsRt.JavaScriptValue類代碼示例

本文整理匯總了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);
開發者ID:marcthomas,項目名稱:MsieJavaScriptEngine,代碼行數:1,代碼來源:Native.cs

示例2: JsVariantToValue

 internal static extern JavaScriptErrorCode JsVariantToValue([MarshalAs(UnmanagedType.Struct)] ref object var, out JavaScriptValue value);
開發者ID:marcthomas,項目名稱:MsieJavaScriptEngine,代碼行數:1,代碼來源:Native.cs

示例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")
 {
 }
開發者ID:huyna,項目名稱:MsieJavaScriptEngine,代碼行數:9,代碼來源:JavaScriptScriptException.cs

示例4: JsSetPrototype

 internal static extern JavaScriptErrorCode JsSetPrototype(JavaScriptValue obj, JavaScriptValue prototypeObject);
開發者ID:marcthomas,項目名稱:MsieJavaScriptEngine,代碼行數:1,代碼來源:Native.cs

示例5: JsStringToPointer

 internal static extern JavaScriptErrorCode JsStringToPointer(JavaScriptValue value, out IntPtr stringValue, out UIntPtr stringLength);
開發者ID:marcthomas,項目名稱:MsieJavaScriptEngine,代碼行數:1,代碼來源:Native.cs

示例6: JsSetException

 internal static extern JavaScriptErrorCode JsSetException(JavaScriptValue exception);
開發者ID:marcthomas,項目名稱:MsieJavaScriptEngine,代碼行數:1,代碼來源:Native.cs

示例7: JsSetIndexedProperty

 internal static extern JavaScriptErrorCode JsSetIndexedProperty(JavaScriptValue obj, JavaScriptValue index, JavaScriptValue value);
開發者ID:marcthomas,項目名稱:MsieJavaScriptEngine,代碼行數:1,代碼來源:Native.cs

示例8: JsGetValueType

 internal static extern JavaScriptErrorCode JsGetValueType(JavaScriptValue value, out JavaScriptValueType type);
開發者ID:marcthomas,項目名稱:MsieJavaScriptEngine,代碼行數:1,代碼來源:Native.cs

示例9: JsHasExternalData

 internal static extern JavaScriptErrorCode JsHasExternalData(JavaScriptValue obj, out bool value);
開發者ID:marcthomas,項目名稱:MsieJavaScriptEngine,代碼行數:1,代碼來源:Native.cs

示例10: JsGetTrueValue

 internal static extern JavaScriptErrorCode JsGetTrueValue(out JavaScriptValue trueValue);
開發者ID:marcthomas,項目名稱:MsieJavaScriptEngine,代碼行數:1,代碼來源:Native.cs

示例11: JsGetUndefinedValue

 internal static extern JavaScriptErrorCode JsGetUndefinedValue(out JavaScriptValue undefinedValue);
開發者ID:marcthomas,項目名稱:MsieJavaScriptEngine,代碼行數:1,代碼來源:Native.cs

示例12: JsGetStringLength

 internal static extern JavaScriptErrorCode JsGetStringLength(JavaScriptValue sringValue, out int length);
開發者ID:marcthomas,項目名稱:MsieJavaScriptEngine,代碼行數:1,代碼來源:Native.cs

示例13: JsGetProperty

 internal static extern JavaScriptErrorCode JsGetProperty(JavaScriptValue obj, JavaScriptPropertyId propertyId, out JavaScriptValue value);
開發者ID:marcthomas,項目名稱:MsieJavaScriptEngine,代碼行數:1,代碼來源:Native.cs

示例14: JsGetOwnPropertyNames

 internal static extern JavaScriptErrorCode JsGetOwnPropertyNames(JavaScriptValue obj, out JavaScriptValue propertyNames);
開發者ID:marcthomas,項目名稱:MsieJavaScriptEngine,代碼行數:1,代碼來源:Native.cs

示例15: JsRunScript

 internal static extern JavaScriptErrorCode JsRunScript(string script, JavaScriptSourceContext sourceContext, string sourceUrl, out JavaScriptValue result);
開發者ID:marcthomas,項目名稱:MsieJavaScriptEngine,代碼行數:1,代碼來源:Native.cs


注:本文中的MsieJavaScriptEngine.JsRt.JavaScriptValue類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。