Version:
InvokeAction<T>(IRemoteMethodExecuter agent, System.Action<T> method, T arg) Method
Invokes the method on the remote server using the specified argument.
Syntax
public
static
void InvokeAction<T>(IRemoteMethodExecuter agent, Action<T> method, T arg)
Parameters
- agent
- Type: IRemoteMethodExecuter
The agent to invoke the method on.
- method
- Type: System.Action<T>
The method to invoke.
- arg
- Type: T
The parameter to pass to the method.
Exceptions
System.ArgumentNullException
|
agent or method is null (Nothing in Visual Basic).
|
System.ArgumentException
|
method is not valid or parameters are not valid. See Remarks.
|