Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IAdvised.AddAdvisor(Int32, IAdvisor) Method

Adds the supplied advisor to the list of Advisors.

[Visual Basic]
Public Sub AddAdvisor( _
   ByVal index As Integer, _
   ByVal advisor As IAdvisor _
)
[C#]
void AddAdvisor(
   int index,
   IAdvisor advisor
);

Parameters

index
The index in the Advisors list at which the supplied advisor is to be inserted.
advisor
The IIntroductionAdvisor to add.

Exceptions

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

See Also

IAdvised Interface | Spring.Aop.Framework Namespace | IAdvised.AddAdvisor Overload List