Olvasás angol nyelven

Megosztás a következőn keresztül:


IJSInProcessObjectReference Interface

Definition

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

C#
public interface IJSInProcessObjectReference : IAsyncDisposable, IDisposable, Microsoft.JSInterop.IJSObjectReference
Derived
Implements

Methods

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)

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.

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

Termék Verziók
ASP.NET Core 5.0, 6.0, 7.0, 8.0, 9.0