Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference
AdvisedSupport.ReplaceAdvisor Method
Replaces the oldAdvisor with the newAdvisor .
[Visual Basic]
Public NotOverridable Sub ReplaceAdvisor( _
ByVal
oldAdvisor As
IAdvisor , _
ByVal
newAdvisor As
IAdvisor _
) _
Parameters
oldAdvisor
The original (old) advisor to be replaced.
newAdvisor
The new advisor to replace the oldAdvisor with.
Return Value
true if the oldAdvisor was replaced; if the oldAdvisor was not found in the advisors collection (or the newAdvisor is , this method returns false and (effectively) does nothing.
Implements
IAdvised.ReplaceAdvisor
Exceptions
Exception Type
Condition
AopConfigException
If this proxy configuration is frozen and the oldAdvisor cannot be replaced.
See Also
AdvisedSupport Class | Spring.Aop.Framework Namespace | IsFrozen