Dela via


JSRuntimeExtensions Class

Definition

Extensions for IJSRuntime.

public ref class JSRuntimeExtensions abstract sealed
public static class JSRuntimeExtensions
type JSRuntimeExtensions = class
Public Module JSRuntimeExtensions
Inheritance
JSRuntimeExtensions

Methods

GetValueAsync<TValue>(IJSRuntime, String, TimeSpan)

Reads the value of the specified JavaScript property asynchronously.

InvokeAsync<TValue>(IJSRuntime, String, CancellationToken, Object[])

Invokes the specified JavaScript function asynchronously.

InvokeAsync<TValue>(IJSRuntime, String, Object[])

Invokes the specified JavaScript function asynchronously.

JSRuntime will apply timeouts to this operation based on the value configured in DefaultAsyncTimeout. To dispatch a call with a different timeout, or no timeout, consider using InvokeAsync<TValue>(String, CancellationToken, Object[]).

InvokeAsync<TValue>(IJSRuntime, String, TimeSpan, Object[])

Invokes the specified JavaScript function asynchronously.

InvokeConstructorAsync(IJSRuntime, String, CancellationToken, Object[])

Invokes the specified JavaScript constructor function asynchronously. The function is invoked with the new operator.

InvokeConstructorAsync(IJSRuntime, String, Object[])

Invokes the specified JavaScript constructor function asynchronously. The function is invoked with the new operator.

InvokeConstructorAsync(IJSRuntime, String, TimeSpan, Object[])

Invokes the specified JavaScript constructor function asynchronously. The function is invoked with the new operator.

InvokeVoidAsync(IJSRuntime, String, CancellationToken, Object[])

Invokes the specified JavaScript function asynchronously.

InvokeVoidAsync(IJSRuntime, String, Object[])

Invokes the specified JavaScript function asynchronously.

InvokeVoidAsync(IJSRuntime, String, TimeSpan, Object[])

Invokes the specified JavaScript function asynchronously.

SetValueAsync<TValue>(IJSRuntime, String, TValue, TimeSpan)

Updates the value of the specified JavaScript property asynchronously. If the property is not defined on the target object, it will be created.

Applies to