Client.InvokeMethod(String, Object[]) Method

Definition

Invokes a method on the server

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public object[]? InvokeMethod (string methodName, params object[] parameters);

Parameters

methodName
String

The full method name

parameters
Object[]

All parameters to be passed to the method

Returns

Object[]
Attributes

Exceptions

Thrown if the client is not connected to a host

Thrown if the method name doesn't exist on either the client or host

Thrown if the return type or parameter types doesn't have a TypeReadWriter<T>

Thrown if the type reader/writer fails on the host

Thrown if an Exception occurs while invoking a method on the host

Applies to