Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AdvisedSupport.AddAdvice(Int32, IAdvice) Method

Adds the supplied advice to the supplied position in the advice (interceptor) chain.

[Visual Basic]
Public NotOverridable Overloads Sub AddAdvice( _
   ByVal position As Integer, _
   ByVal advice As IAdvice _
) _
    Implements IAdvised.AddAdvice
[C#]
public void AddAdvice(
   int position,
   IAdvice advice
);

Parameters

position
The zero (0) indexed position (from the head) at which the supplied advice is to be inserted into the advice (interceptor) chain.
advice
The IAdvice to be added.

Implements

IAdvised.AddAdvice

Exceptions

Exception Type Condition
AopConfigException If the supplied advice is ; or is not an IMethodInterceptor reference; or if the supplied advice is a IIntroductionInterceptor.

See Also

AdvisedSupport Class | Spring.Aop.Framework Namespace | AdvisedSupport.AddAdvice Overload List | DefaultPointcutAdvisor | AddAdvice