WebAssemblyJSRuntime 类  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为 Mono WebAssembly 运行时上运行的应用程序提供调用 JavaScript 函数的方法。
public ref class WebAssemblyJSRuntime abstract : Microsoft::JSInterop::JSInProcessRuntimepublic abstract class WebAssemblyJSRuntime : Microsoft.JSInterop.JSInProcessRuntimepublic abstract class WebAssemblyJSRuntime : Microsoft.JSInterop.JSInProcessRuntime, Microsoft.JSInterop.IJSUnmarshalledRuntimetype WebAssemblyJSRuntime = class
    inherit JSInProcessRuntimetype WebAssemblyJSRuntime = class
    inherit JSInProcessRuntime
    interface IJSUnmarshalledRuntimePublic MustInherit Class WebAssemblyJSRuntime
Inherits JSInProcessRuntimePublic MustInherit Class WebAssemblyJSRuntime
Inherits JSInProcessRuntime
Implements IJSUnmarshalledRuntime- 继承
- 实现
构造函数
| WebAssemblyJSRuntime() | 初始化 WebAssemblyJSRuntime 的新实例。 | 
属性
| DefaultAsyncTimeout | 获取或设置异步 JavaScript 调用的默认超时。(继承自 JSRuntime) | 
| JsonSerializerOptions | JsonSerializerOptions获取用于序列化和反序列化互操作有效负载的 。(继承自 JSRuntime) | 
方法
扩展方法
| InvokeVoid(IJSInProcessRuntime, String, Object[]) | 同步调用指定的 JavaScript 函数。 | 
| InvokeAsync<TValue>(IJSRuntime, String, Object[]) | 异步调用指定的 JavaScript 函数。 JSRuntime 将根据 中 DefaultAsyncTimeout配置的值对此操作应用超时。 若要调度具有不同超时或无超时的调用,请考虑使用 InvokeAsync<TValue>(String, CancellationToken, Object[])。 | 
| InvokeAsync<TValue>(IJSRuntime, String, CancellationToken, Object[]) | 异步调用指定的 JavaScript 函数。 | 
| InvokeAsync<TValue>(IJSRuntime, String, TimeSpan, Object[]) | 异步调用指定的 JavaScript 函数。 | 
| InvokeVoidAsync(IJSRuntime, String, Object[]) | 异步调用指定的 JavaScript 函数。 | 
| InvokeVoidAsync(IJSRuntime, String, CancellationToken, Object[]) | 异步调用指定的 JavaScript 函数。 | 
| InvokeVoidAsync(IJSRuntime, String, TimeSpan, Object[]) | 异步调用指定的 JavaScript 函数。 |