共用方式為


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 可序列化引數。

適用於