Movatterモバイル変換


[0]ホーム

URL:


Skip to main contentSkip to in-page navigation

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit focus mode

IJSInProcessObjectReference.Invoke<TValue>(String, Object[]) Method

Definition

Namespace:
Microsoft.JSInterop
Assembly:
Microsoft.JSInterop.dll
Package:
Microsoft.JSInterop v10.0.0-preview.5.25277.114
Package:
Microsoft.JSInterop v5.0.9
Package:
Microsoft.JSInterop v6.0.6
Package:
Microsoft.JSInterop v7.0.5
Package:
Microsoft.JSInterop v8.0.0
Package:
Microsoft.JSInterop v9.0.2
Source:
IJSInProcessObjectReference.cs
Source:
IJSInProcessObjectReference.cs
Source:
IJSInProcessObjectReference.cs
Source:
IJSInProcessObjectReference.cs
Source:
IJSInProcessObjectReference.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Invokes the specified JavaScript function synchronously.

public:generic <typename TValue> TValue Invoke(System::String ^ identifier, ... cli::array <System::Object ^> ^ args);
public TValue Invoke<TValue>(string identifier, params object?[]? args);
abstract member Invoke : string * obj[] -> 'Value
Public Function Invoke(Of TValue) (identifier As String, ParamArray args As Object()) As TValue

Type Parameters

TValue

The JSON-serializable return type.

Parameters

identifier
String

An identifier for the function to invoke. For example, the value"someScope.someFunction" will invoke the functionsomeScope.someFunction on the target instance.

args
Object[]

JSON-serializable arguments.

Returns

TValue

An instance ofTValue obtained by JSON-deserializing the return value.

Applies to


Feedback

Was this page helpful?

YesNo

In this article

Was this page helpful?

YesNo