Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

MethodInvoker.Invoke Method

Invoke the specified method.

[Visual Basic]
Public Overridable Sub Invoke()
[C#]
public virtual object Invoke();

Return Value

The object returned by the method invocation, or Void if the method returns void.

Remarks

The invoker needs to have been prepared beforehand (via a call to the Prepare method).

Exceptions

Exception Type Condition
MethodInvocationException If at least one of the arguments passed to this MethodInvoker was incompatible with the signature of the invoked method.

See Also

MethodInvoker Class | Spring.Objects.Support Namespace