Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IAfterReturningAdvice.AfterReturning Method

Executes after targetmethod returns successfully.

[Visual Basic]
Public Sub AfterReturning( _
   ByVal returnValue As Object, _
   ByVal method As MethodInfo, _
   ByVal args As Object, _
   ByVal target As Object _
)
[C#]
void AfterReturning(
   object returnValue,
   MethodInfo method,
   object[] args,
   object target
);

Parameters

returnValue
The value returned by the target.
method
The intecepted method.
args
The intercepted method's arguments.
target
The target object.

Remarks

Note that the supplied returnValuecannot be changed by this type of advice... use the around advice type (IMethodInterceptor) if you need to change the return value of an advised method invocation. The data encapsulated by the supplied returnValue can of course be modified though.

See Also

IAfterReturningAdvice Interface | Spring.Aop Namespace | Invoke