Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AdvisedSupport.AddAdvisor(Int32, IAdvisor) Method

Adds the supplied advisor to the list of Advisors.

[Visual Basic]
Public Overridable Overloads Sub AddAdvisor( _
   ByVal index As Integer, _
   ByVal advisor As IAdvisor _
) _
    Implements IAdvised.AddAdvisor
[C#]
public virtual void AddAdvisor(
   int index,
   IAdvisor advisor
);

Parameters

index
The index in the Advisors list at which the supplied advisor is to be inserted. If -1, appends to the end of the list.
advisor
The IIntroductionAdvisor to add.

Implements

IAdvised.AddAdvisor

Exceptions

Exception Type Condition
AopConfigException If this proxy configuration is frozen and the advisor cannot be added.

See Also

AdvisedSupport Class | Spring.Aop.Framework Namespace | AdvisedSupport.AddAdvisor Overload List