JSRuntimeExtensions.InvokeVoidAsync Méthode

Définition

Surcharges

InvokeVoidAsync(IJSRuntime, String, Object[])

Appelle la fonction JavaScript spécifiée de manière asynchrone.

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

Appelle la fonction JavaScript spécifiée de manière asynchrone.

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

Appelle la fonction JavaScript spécifiée de manière asynchrone.

InvokeVoidAsync(IJSRuntime, String, Object[])

Appelle la fonction JavaScript spécifiée de manière asynchrone.

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

Paramètres

jsRuntime
IJSRuntime

L’IJSRuntimeopérateur

identifier
String

Identificateur de la fonction à appeler. Par exemple, la valeur "someScope.someFunction" appelle la fonction window.someScope.someFunction.

args
Object[]

Arguments sérialisables JSON.

Retours

ValueTask qui représente l’opération d’appel asynchrone.

S’applique à

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

Appelle la fonction JavaScript spécifiée de manière asynchrone.

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

Paramètres

jsRuntime
IJSRuntime

L’IJSRuntimeopérateur

identifier
String

Identificateur de la fonction à appeler. Par exemple, la valeur "someScope.someFunction" appelle la fonction window.someScope.someFunction.

cancellationToken
CancellationToken

Jeton d’annulation pour signaler l’annulation de l’opération. La spécification de ce paramètre remplace toutes les annulations par défaut, par exemple en raison de délais d’expiration (DefaultAsyncTimeout) d’application.

args
Object[]

Arguments sérialisables JSON.

Retours

ValueTask qui représente l’opération d’appel asynchrone.

S’applique à

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

Appelle la fonction JavaScript spécifiée de manière asynchrone.

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

Paramètres

jsRuntime
IJSRuntime

L’IJSRuntimeopérateur

identifier
String

Identificateur de la fonction à appeler. Par exemple, la valeur "someScope.someFunction" appelle la fonction window.someScope.someFunction.

timeout
TimeSpan

Durée après laquelle annuler l’opération asynchrone. Remplace les délais d’expiration par défaut (DefaultAsyncTimeout).

args
Object[]

Arguments sérialisables JSON.

Retours

ValueTask qui représente l’opération d’appel asynchrone.

S’applique à