本文整理汇总了C#中JavaScriptEngineSwitcher.ChakraCore.JsRt.JsValue类的典型用法代码示例。如果您正苦于以下问题:C# JsValue类的具体用法?C# JsValue怎么用?C# JsValue使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JsValue类属于JavaScriptEngineSwitcher.ChakraCore.JsRt命名空间,在下文中一共展示了JsValue类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: JsConstructObject
internal static extern JsErrorCode JsConstructObject(JsValue function, JsValue[] arguments,
ushort argumentCount, out JsValue result);
示例2: JsGetUndefinedValue
internal static extern JsErrorCode JsGetUndefinedValue(out JsValue undefinedValue);
示例3: JsScriptException
/// <summary>
/// Initializes a new instance of the <see cref="JsScriptException"/> class
/// </summary>
/// <param name="errorCode">The error code returned</param>
/// <param name="error">The JavaScript error object</param>
public JsScriptException(JsErrorCode errorCode, JsValue error)
: this(errorCode, error, "JavaScript Exception")
{ }
示例4: JsGetSymbolFromPropertyId
internal static extern JsErrorCode JsGetSymbolFromPropertyId(JsPropertyId propertyId, out JsValue symbol);
示例5: JsCreateSymbol
internal static extern JsErrorCode JsCreateSymbol(JsValue description, out JsValue symbol);
示例6: JsAddRef
internal static extern JsErrorCode JsAddRef(JsValue reference, out uint count);
示例7: JsSetObjectBeforeCollectCallback
internal static extern JsErrorCode JsSetObjectBeforeCollectCallback(JsValue reference, IntPtr callbackState,
JsObjectBeforeCollectCallback beforeCollectCallback);
示例8: JsSetException
internal static extern JsErrorCode JsSetException(JsValue exception);
示例9: JsCreateStringUtf8
internal static extern JsErrorCode JsCreateStringUtf8(string content, UIntPtr length, out JsValue value);
示例10: JsCreateURIError
internal static extern JsErrorCode JsCreateURIError(JsValue message, out JsValue error);
示例11: JsGetAndClearException
internal static extern JsErrorCode JsGetAndClearException(out JsValue exception);
示例12: JsCreateReferenceError
internal static extern JsErrorCode JsCreateReferenceError(JsValue message, out JsValue error);
示例13: JsCreateNamedFunction
internal static extern JsErrorCode JsCreateNamedFunction(JsValue name, JsNativeFunction nativeFunction,
IntPtr callbackState, out JsValue function);
示例14: JsCreateFunction
internal static extern JsErrorCode JsCreateFunction(JsNativeFunction nativeFunction, IntPtr externalData,
out JsValue function);
示例15: JsPointerToString
internal static extern JsErrorCode JsPointerToString(string value, UIntPtr stringLength,
out JsValue stringValue);