Version:
InvokeFunc<TResult>(IRemoteMethodExecuter agent, System.Func<TResult> method) Method
Invokes the method on the remote server and returns the result.
Syntax
public
static TResult InvokeFunc<TResult>(IRemoteMethodExecuter agent, Func<TResult> method)
Parameters
- agent
- Type: IRemoteMethodExecuter
The agent to invoke the method on.
- method
- Type: System.Func<TResult>
The method to invoke.
Returns
Return value of the method.
Exceptions
System.ArgumentNullException
|
agent or method is null (Nothing in Visual Basic).
|
System.ArgumentException
|
method is not valid. See Remarks.
|