Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IMethodInterceptor.Invoke Method

Implement this method to perform extra treatments before and after the call to the supplied invocation.

[Visual Basic]
Public Sub Invoke( _
   ByVal invocation As IMethodInvocation _
object Invoke(
   IMethodInvocation invocation


The method invocation that is being intercepted.

Return Value

The result of the call to the Proceed method of the supplied invocation; this return value may well have been intercepted by the interceptor.


Polite implementations would certainly like to invoke Proceed.


Exception Type Condition
Exception If any of the interceptors in the chain or the target object itself throws an exception.

See Also

IMethodInterceptor Interface | AopAlliance.Intercept Namespace