共用方式為


JSInProcessObjectReferenceExtensions.InvokeVoid 方法

定義

同步叫用指定的 JavaScript 函式。

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

參數

identifier
String

要叫用之函式的識別碼。 例如,值 "someScope.someFunction" 會在目標實例上叫用 函 someScope.someFunction 式。

args
Object[]

JSON 可序列化引數。

適用於