IJSInProcessObjectReference.Invoke<TValue>(String, Object[]) Método

Definição

Invoca a função JavaScript especificada de forma síncrona.

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

Parâmetros de tipo

TValue

O tipo de retorno serializável JSON.

Parâmetros

identifier
String

Um identificador para a função a ser invocada. Por exemplo, o valor "someScope.someFunction" invocará a função someScope.someFunction na instância de destino.

args
Object[]

Argumentos serializáveis em JSON.

Retornos

TValue

Uma instância de TValue obtida por JSON desserializando o valor retornado.

Aplica-se a