Dela via


JSRuntimeExtensions.InvokeVoidAsync Method

Definition

Overloads

InvokeVoidAsync(IJSRuntime, String, Object[])

Invokes the specified JavaScript function asynchronously.

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

Invokes the specified JavaScript function asynchronously.

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

Invokes the specified JavaScript function asynchronously.

InvokeVoidAsync(IJSRuntime, String, Object[])

Source:
JSRuntimeExtensions.cs
Source:
JSRuntimeExtensions.cs
Source:
JSRuntimeExtensions.cs
Source:
JSRuntimeExtensions.cs
Source:
JSRuntimeExtensions.cs
Source:
JSRuntimeExtensions.cs
Source:
JSRuntimeExtensions.cs

Invokes the specified JavaScript function asynchronously.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::ValueTask InvokeVoidAsync(Microsoft::JSInterop::IJSRuntime ^ jsRuntime, System::String ^ identifier, ... cli::array <System::Object ^> ^ args);
public static System.Threading.Tasks.ValueTask InvokeVoidAsync (this Microsoft.JSInterop.IJSRuntime jsRuntime, string identifier, params object[] args);
public static System.Threading.Tasks.ValueTask InvokeVoidAsync (this Microsoft.JSInterop.IJSRuntime jsRuntime, string identifier, params object?[]? args);
static member InvokeVoidAsync : Microsoft.JSInterop.IJSRuntime * string * obj[] -> System.Threading.Tasks.ValueTask
<Extension()>
Public Function InvokeVoidAsync (jsRuntime As IJSRuntime, identifier As String, ParamArray args As Object()) As ValueTask

Parameters

jsRuntime
IJSRuntime

The IJSRuntime.

identifier
String

An identifier for the function to invoke. For example, the value "someScope.someFunction" will invoke the function window.someScope.someFunction.

args
Object[]

JSON-serializable arguments.

Returns

A ValueTask that represents the asynchronous invocation operation.

Applies to

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

Source:
JSRuntimeExtensions.cs
Source:
JSRuntimeExtensions.cs
Source:
JSRuntimeExtensions.cs
Source:
JSRuntimeExtensions.cs
Source:
JSRuntimeExtensions.cs
Source:
JSRuntimeExtensions.cs
Source:
JSRuntimeExtensions.cs

Invokes the specified JavaScript function asynchronously.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::ValueTask InvokeVoidAsync(Microsoft::JSInterop::IJSRuntime ^ jsRuntime, System::String ^ identifier, System::Threading::CancellationToken cancellationToken, ... cli::array <System::Object ^> ^ args);
public static System.Threading.Tasks.ValueTask InvokeVoidAsync (this Microsoft.JSInterop.IJSRuntime jsRuntime, string identifier, System.Threading.CancellationToken cancellationToken, params object[] args);
public static System.Threading.Tasks.ValueTask InvokeVoidAsync (this Microsoft.JSInterop.IJSRuntime jsRuntime, string identifier, System.Threading.CancellationToken cancellationToken, params object?[]? args);
static member InvokeVoidAsync : Microsoft.JSInterop.IJSRuntime * string * System.Threading.CancellationToken * obj[] -> System.Threading.Tasks.ValueTask
<Extension()>
Public Function InvokeVoidAsync (jsRuntime As IJSRuntime, identifier As String, cancellationToken As CancellationToken, ParamArray args As Object()) As ValueTask

Parameters

jsRuntime
IJSRuntime

The IJSRuntime.

identifier
String

An identifier for the function to invoke. For example, the value "someScope.someFunction" will invoke the function window.someScope.someFunction.

cancellationToken
CancellationToken

A cancellation token to signal the cancellation of the operation. Specifying this parameter will override any default cancellations such as due to timeouts (DefaultAsyncTimeout) from being applied.

args
Object[]

JSON-serializable arguments.

Returns

A ValueTask that represents the asynchronous invocation operation.

Applies to

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

Source:
JSRuntimeExtensions.cs
Source:
JSRuntimeExtensions.cs
Source:
JSRuntimeExtensions.cs
Source:
JSRuntimeExtensions.cs
Source:
JSRuntimeExtensions.cs
Source:
JSRuntimeExtensions.cs
Source:
JSRuntimeExtensions.cs

Invokes the specified JavaScript function asynchronously.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::ValueTask InvokeVoidAsync(Microsoft::JSInterop::IJSRuntime ^ jsRuntime, System::String ^ identifier, TimeSpan timeout, ... cli::array <System::Object ^> ^ args);
public static System.Threading.Tasks.ValueTask InvokeVoidAsync (this Microsoft.JSInterop.IJSRuntime jsRuntime, string identifier, TimeSpan timeout, params object[] args);
public static System.Threading.Tasks.ValueTask InvokeVoidAsync (this Microsoft.JSInterop.IJSRuntime jsRuntime, string identifier, TimeSpan timeout, params object?[]? args);
static member InvokeVoidAsync : Microsoft.JSInterop.IJSRuntime * string * TimeSpan * obj[] -> System.Threading.Tasks.ValueTask
<Extension()>
Public Function InvokeVoidAsync (jsRuntime As IJSRuntime, identifier As String, timeout As TimeSpan, ParamArray args As Object()) As ValueTask

Parameters

jsRuntime
IJSRuntime

The IJSRuntime.

identifier
String

An identifier for the function to invoke. For example, the value "someScope.someFunction" will invoke the function window.someScope.someFunction.

timeout
TimeSpan

The duration after which to cancel the async operation. Overrides default timeouts (DefaultAsyncTimeout).

args
Object[]

JSON-serializable arguments.

Returns

A ValueTask that represents the asynchronous invocation operation.

Applies to