Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IJSInProcessRuntime Interface

Definition

Namespace:
Microsoft.JSInterop
Assembly:
Microsoft.JSInterop.dll
Package:
Microsoft.JSInterop v10.0.0
Package:
Microsoft.JSInterop v11.0.0-preview.4.26230.115
Package:
Microsoft.JSInterop v3.0.3
Package:
Microsoft.JSInterop v3.1.18
Package:
Microsoft.JSInterop v5.0.9
Package:
Microsoft.JSInterop v6.0.6
Package:
Microsoft.JSInterop v7.0.5
Package:
Microsoft.JSInterop v8.0.19
Package:
Microsoft.JSInterop v9.0.8
Source:
IJSInProcessRuntime.cs
Source:
IJSInProcessRuntime.cs
Source:
IJSInProcessRuntime.cs
Source:
IJSInProcessRuntime.cs
Source:
IJSInProcessRuntime.cs
Source:
IJSInProcessRuntime.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Represents an instance of a JavaScript runtime to which calls may be dispatched.

public interface class IJSInProcessRuntime : Microsoft::JSInterop::IJSRuntime
public interface IJSInProcessRuntime : Microsoft.JSInterop.IJSRuntime
type IJSInProcessRuntime = interface
 interface IJSRuntime
Public Interface IJSInProcessRuntime
Implements IJSRuntime
Derived
Implements

Methods

Name Description
GetValue<TValue>(String)

Reads the value of the specified JavaScript property synchronously.

GetValueAsync<TValue>(String, CancellationToken)

Reads the value of the specified JavaScript property asynchronously.

(Inherited from IJSRuntime)
GetValueAsync<TValue>(String)

Reads the value of the specified JavaScript property asynchronously.

(Inherited from IJSRuntime)
Invoke<TResult>(String, Object[])

Invokes the specified JavaScript function synchronously.

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

Invokes the specified JavaScript function asynchronously.

(Inherited from IJSRuntime)
InvokeAsync<TValue>(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[]).

(Inherited from IJSRuntime)
InvokeConstructor(String, Object[])

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

InvokeConstructorAsync(String, CancellationToken, Object[])

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

(Inherited from IJSRuntime)
InvokeConstructorAsync(String, Object[])

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

(Inherited from IJSRuntime)
SetValue<TValue>(String, TValue)

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

SetValueAsync<TValue>(String, TValue, CancellationToken)

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

(Inherited from IJSRuntime)
SetValueAsync<TValue>(String, TValue)

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

(Inherited from IJSRuntime)

Extension Methods

Name Description
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.

InvokeVoid(IJSInProcessRuntime, String, Object[])

Invokes the specified JavaScript function synchronously.

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


Feedback

Was this page helpful?