JSObjectReferenceExtensions.InvokeVoidAsync Metoda

Definicja

Przeciążenia

InvokeVoidAsync(IJSObjectReference, String, Object[])

Wywołuje określoną funkcję JavaScript asynchronicznie.

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

Wywołuje określoną funkcję JavaScript asynchronicznie.

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

Wywołuje określoną funkcję JavaScript asynchronicznie.

InvokeVoidAsync(IJSObjectReference, String, Object[])

Wywołuje określoną funkcję JavaScript asynchronicznie.

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

Parametry

jsObjectReference
IJSObjectReference

Element IJSObjectReference.

identifier
String

Identyfikator funkcji do wywołania. Na przykład wartość "someScope.someFunction" wywoła funkcję someScope.someFunction w wystąpieniu docelowym.

args
Object[]

Argumenty z możliwością serializacji JSON.

Zwraca

Element ValueTask reprezentujący operację wywołania asynchronicznego.

Dotyczy

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

Wywołuje określoną funkcję JavaScript asynchronicznie.

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

Parametry

jsObjectReference
IJSObjectReference

Element IJSObjectReference.

identifier
String

Identyfikator funkcji do wywołania. Na przykład wartość "someScope.someFunction" wywoła funkcję someScope.someFunction w wystąpieniu docelowym.

cancellationToken
CancellationToken

Token anulowania w celu zasygnalizowania anulowania operacji. Określenie tego parametru spowoduje zastąpienie wszelkich domyślnych anulowań, takich jak z powodu przekroczenia limitu czasu (DefaultAsyncTimeout) z zastosowania.

args
Object[]

Argumenty z możliwością serializacji JSON.

Zwraca

Element ValueTask reprezentujący operację wywołania asynchronicznego.

Dotyczy

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

Wywołuje określoną funkcję JavaScript asynchronicznie.

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

Parametry

jsObjectReference
IJSObjectReference

Element IJSObjectReference.

identifier
String

Identyfikator funkcji do wywołania. Na przykład wartość "someScope.someFunction" wywoła funkcję someScope.someFunction w wystąpieniu docelowym.

timeout
TimeSpan

Czas trwania, po którym należy anulować operację asynchronizową. Zastępuje domyślne limity czasu (DefaultAsyncTimeout).

args
Object[]

Argumenty z możliwością serializacji JSON.

Zwraca

Element ValueTask reprezentujący operację wywołania asynchronicznego.

Dotyczy