Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AdvisedSupport.IndexOf(IAdvice) Method

Return the index (0 based) of the supplied IAdvice in the interceptor (advice) chain for this proxy.

[Visual Basic]
Public Overridable Overloads Sub IndexOf( _
   ByVal advice As IAdvice _
)
[C#]
public virtual int IndexOf(
   IAdvice advice
);

Parameters

advice
The IAdvice to search for.

Return Value

The zero (0) based index of this interceptor, or -1 if the supplied advice is not an advice for this proxy.

Remarks

The return value of this method can be used to index into the Advisors list.

See Also

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