JSInProcessRuntimeExtensions.InvokeVoid Méthode

Définition

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

public:
[System::Runtime::CompilerServices::Extension]
 static void InvokeVoid(Microsoft::JSInterop::IJSInProcessRuntime ^ jsRuntime, System::String ^ identifier, ... cli::array <System::Object ^> ^ args);
public static void InvokeVoid (this Microsoft.JSInterop.IJSInProcessRuntime jsRuntime, string identifier, params object[] args);
public static void InvokeVoid (this Microsoft.JSInterop.IJSInProcessRuntime jsRuntime, string identifier, params object?[] args);
public static void InvokeVoid (this Microsoft.JSInterop.IJSInProcessRuntime jsRuntime, string identifier, params object?[]? args);
static member InvokeVoid : Microsoft.JSInterop.IJSInProcessRuntime * string * obj[] -> unit
<Extension()>
Public Sub InvokeVoid (jsRuntime As IJSInProcessRuntime, identifier As String, ParamArray args As Object())

Paramètres

jsRuntime
IJSInProcessRuntime

L’IJSInProcessRuntimeopé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.

S’applique à