Home

Castle Stronghold

FilterAttribute API Document

Decorates a controller associating a Castle.MonoRail.Framework.IFilter implementation with it. More than one can be associated.

Quick Note

If more than one filter is associate with an action (or controller and action), the order of execution cannot be predicted. In this case use Castle.MonoRail.Framework.FilterAttribute.ExecutionOrder to define the order of execution.

Constructors

FilterAttribute(ExecuteEnum when, Type filterType)

Constructs a FilterAttribute associating the filter type and when the filter should be invoked.

ParameterDescription
when When to execute the filter
filterType The filter implementation

Properties

NameTypeDescription
FilterTypeType Gets the filter implementation type
WhenExecuteEnum Gets when to run the filter
ExecutionOrderInt32 Gets or sets the filter execution order. The lower the value, the higher the priority

Methods

BuildFilterDescriptors() : FilterDescriptor[]

Implementation of Castle.MonoRail.Framework.Internal.IFilterDescriptorBuilder. Returns the descriptor for this filter association.

Google
Search WWW Search castleproject.org