JSInProcessRuntimeExtensions.InvokeVoid 方法

定义

同步调用指定的 JavaScript 函数。

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())

参数

identifier
String

要调用的函数的标识符。 例如, 值 "someScope.someFunction" 将调用函数 window.someScope.someFunction

args
Object[]

JSON 可序列化参数。

适用于