Share via


IJSInProcessObjectReference Interface

Definition

Represents a reference to a JavaScript object whose functions can be invoked synchronously.

public interface class IJSInProcessObjectReference : IAsyncDisposable, IDisposable, Microsoft::JSInterop::IJSObjectReference
public interface IJSInProcessObjectReference : IAsyncDisposable, IDisposable, Microsoft.JSInterop.IJSObjectReference
type IJSInProcessObjectReference = interface
    interface IJSObjectReference
    interface IAsyncDisposable
    interface IDisposable
Public Interface IJSInProcessObjectReference
Implements IAsyncDisposable, IDisposable, IJSObjectReference
Derived
Implements

Methods

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 IJSObjectReference)
GetValueAsync<TValue>(String)

Reads the value of the specified JavaScript property asynchronously.

(Inherited from IJSObjectReference)
Invoke<TValue>(String, Object[])

Invokes the specified JavaScript function synchronously.

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

Invokes the specified JavaScript function asynchronously.

(Inherited from IJSObjectReference)
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, or no timeout, consider using InvokeAsync<TValue>(String, CancellationToken, Object[]).

(Inherited from IJSObjectReference)
InvokeNew(String, Object[])

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

InvokeNewAsync(String, CancellationToken, Object[])

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

(Inherited from IJSObjectReference)
InvokeNewAsync(String, Object[])

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

(Inherited from IJSObjectReference)
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 IJSObjectReference)
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 IJSObjectReference)

Extension Methods

InvokeVoid(IJSInProcessObjectReference, String, Object[])

Invokes the specified JavaScript function synchronously.

InvokeAsync<TValue>(IJSObjectReference, 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>(IJSObjectReference, String, CancellationToken, Object[])

Invokes the specified JavaScript function asynchronously.

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

Invokes the specified JavaScript function asynchronously.

InvokeNewAsync(IJSObjectReference, String, Object[])

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

InvokeNewAsync(IJSObjectReference, String, CancellationToken, Object[])

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

InvokeNewAsync(IJSObjectReference, String, TimeSpan, Object[])

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

InvokeVoidAsync(IJSObjectReference, String, Object[])

Invokes the specified JavaScript function asynchronously.

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

Invokes the specified JavaScript function asynchronously.

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

Invokes the specified JavaScript function asynchronously.

Applies to