Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AdvisedSupport.RemoveAdvice Method

Removes the supplied advice from the list of Advisors.

[Visual Basic]
Public NotOverridable Sub RemoveAdvice( _
   ByVal advice As IAdvice _
) _
    Implements IAdvised.RemoveAdvice
[C#]
public bool RemoveAdvice(
   IAdvice advice
);

Parameters

advice
The IAdvice to remove.

Return Value

true if the supplied advice was found in the list of Advisors and successfully removed.

Implements

IAdvised.RemoveAdvice

Exceptions

Exception Type Condition
AopConfigException If this proxy configuration is frozen and the IAdvice cannot be removed.

See Also

AdvisedSupport Class | Spring.Aop.Framework Namespace