JSObjectReferenceExtensions.InvokeVoidAsync Metodo

Definizione

Overload

InvokeVoidAsync(IJSObjectReference, String, Object[])

Richiama la funzione JavaScript specificata in modo asincrono.

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

Richiama la funzione JavaScript specificata in modo asincrono.

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

Richiama la funzione JavaScript specificata in modo asincrono.

InvokeVoidAsync(IJSObjectReference, String, Object[])

Richiama la funzione JavaScript specificata in modo asincrono.

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

Parametri

jsObjectReference
IJSObjectReference

Oggetto IJSObjectReference.

identifier
String

Identificatore della funzione da richiamare. Ad esempio, il valore "someScope.someFunction" richiama la funzione someScope.someFunction nell'istanza di destinazione.

args
Object[]

Argomenti serializzabili JSON.

Restituisce

Oggetto ValueTask che rappresenta l'operazione di chiamata asincrona.

Si applica a

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

Richiama la funzione JavaScript specificata in modo asincrono.

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

Parametri

jsObjectReference
IJSObjectReference

Oggetto IJSObjectReference.

identifier
String

Identificatore della funzione da richiamare. Ad esempio, il valore "someScope.someFunction" richiama la funzione someScope.someFunction nell'istanza di destinazione.

cancellationToken
CancellationToken

Token di annullamento per segnalare l'annullamento dell'operazione. Se si specifica questo parametro, si eseguirà l'override di eventuali annullamenti predefiniti, ad esempio a causa di timeout (DefaultAsyncTimeout) da applicare.

args
Object[]

Argomenti serializzabili JSON.

Restituisce

Oggetto ValueTask che rappresenta l'operazione di chiamata asincrona.

Si applica a

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

Richiama la funzione JavaScript specificata in modo asincrono.

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

Parametri

jsObjectReference
IJSObjectReference

Oggetto IJSObjectReference.

identifier
String

Identificatore della funzione da richiamare. Ad esempio, il valore "someScope.someFunction" richiama la funzione someScope.someFunction nell'istanza di destinazione.

timeout
TimeSpan

Durata dopo la quale annullare l'operazione asincrona. Esegue l'override dei timeout predefiniti (DefaultAsyncTimeout).

args
Object[]

Argomenti serializzabili JSON.

Restituisce

Oggetto ValueTask che rappresenta l'operazione di chiamata asincrona.

Si applica a