JSObjectReferenceExtensions.InvokeVoidAsync Método

Definição

Sobrecargas

InvokeVoidAsync(IJSObjectReference, String, Object[])

Invoca a função JavaScript especificada de forma assíncrona.

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

Invoca a função JavaScript especificada de forma assíncrona.

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

Invoca a função JavaScript especificada de forma assíncrona.

InvokeVoidAsync(IJSObjectReference, String, Object[])

Invoca a função JavaScript especificada de forma assíncrona.

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

Parâmetros

jsObjectReference
IJSObjectReference

O IJSObjectReference.

identifier
String

Um identificador para a função a ser invocada. Por exemplo, o valor "someScope.someFunction" invocará a função someScope.someFunction na instância de destino.

args
Object[]

Argumentos serializáveis em JSON.

Retornos

Um ValueTask que representa a operação de invocação assíncrona.

Aplica-se a

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

Invoca a função JavaScript especificada de forma assíncrona.

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

Parâmetros

jsObjectReference
IJSObjectReference

O IJSObjectReference.

identifier
String

Um identificador para a função a ser invocada. Por exemplo, o valor "someScope.someFunction" invocará a função someScope.someFunction na instância de destino.

cancellationToken
CancellationToken

Um token de cancelamento para sinalizar o cancelamento da operação. Especificar esse parâmetro substituirá todos os cancelamentos padrão, como devido a tempos limite (DefaultAsyncTimeout) de serem aplicados.

args
Object[]

Argumentos serializáveis em JSON.

Retornos

Um ValueTask que representa a operação de invocação assíncrona.

Aplica-se a

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

Invoca a função JavaScript especificada de forma assíncrona.

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

Parâmetros

jsObjectReference
IJSObjectReference

O IJSObjectReference.

identifier
String

Um identificador para a função a ser invocada. Por exemplo, o valor "someScope.someFunction" invocará a função someScope.someFunction na instância de destino.

timeout
TimeSpan

A duração após a qual cancelar a operação assíncrona. Substitui tempos limite padrão (DefaultAsyncTimeout).

args
Object[]

Argumentos serializáveis em JSON.

Retornos

Um ValueTask que representa a operação de invocação assíncrona.

Aplica-se a