JSRuntimeExtensions.InvokeVoidAsync Methode

Definition

Überlädt

InvokeVoidAsync(IJSRuntime, String, Object[])

Ruft die angegebene JavaScript-Funktion asynchron auf.

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

Ruft die angegebene JavaScript-Funktion asynchron auf.

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

Ruft die angegebene JavaScript-Funktion asynchron auf.

InvokeVoidAsync(IJSRuntime, String, Object[])

Ruft die angegebene JavaScript-Funktion asynchron auf.

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

Parameter

jsRuntime
IJSRuntime

Die IJSRuntime.

identifier
String

Ein Bezeichner für die aufzurufende Funktion. Der Wert "someScope.someFunction" ruft beispielsweise die -Funktion window.someScope.someFunctionauf.

args
Object[]

JSON-serialisierbare Argumente.

Gibt zurück

Ein ValueTask , das den asynchronen Aufrufvorgang darstellt.

Gilt für:

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

Ruft die angegebene JavaScript-Funktion asynchron auf.

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

Parameter

jsRuntime
IJSRuntime

Die IJSRuntime.

identifier
String

Ein Bezeichner für die aufzurufende Funktion. Der Wert "someScope.someFunction" ruft beispielsweise die -Funktion window.someScope.someFunctionauf.

cancellationToken
CancellationToken

Ein Abbruchtoken, das den Abbruch des Vorgangs signalisiert. Wenn Sie diesen Parameter angeben, werden alle Standardabbrüche überschrieben, z. B. aufgrund von Timeouts (DefaultAsyncTimeout), die angewendet werden.

args
Object[]

JSON-serialisierbare Argumente.

Gibt zurück

Ein ValueTask , das den asynchronen Aufrufvorgang darstellt.

Gilt für:

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

Ruft die angegebene JavaScript-Funktion asynchron auf.

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

Parameter

jsRuntime
IJSRuntime

Die IJSRuntime.

identifier
String

Ein Bezeichner für die aufzurufende Funktion. Der Wert "someScope.someFunction" ruft beispielsweise die -Funktion window.someScope.someFunctionauf.

timeout
TimeSpan

Die Dauer, nach der der asynchrone Vorgang abgebrochen werden soll. Überschreibt Standardtimeouts (DefaultAsyncTimeout).

args
Object[]

JSON-serialisierbare Argumente.

Gibt zurück

Ein ValueTask , das den asynchronen Aufrufvorgang darstellt.

Gilt für: