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
- System.String
The full method name
- parameters
- System.Object[]
All parameters to be passed to the method
Returns
- System.Object[]
- Attributes
- System.ComponentModel.EditorBrowsableAttribute
Exceptions
Thrown if the client is not connected to a host
System.MissingMethodException
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 System.Exception occurs while invoking a method on the host