Home

Castle Stronghold

DataBindAttribute API Document

The DataBind Attribute is used to indicate that an Action methods parameter is to be intercepted and handled by the Castle.Components.Binder.DataBinder.

Quick Note

Allowed usage is one per method parameter, and is not inherited.

Constructors

DataBindAttribute(String prefix)

Creates a Castle.MonoRail.Framework.DataBindAttribute with an associated prefix. The prefix must be present in the form data and is used to avoid name clashes.

ParameterDescription
prefix

Properties

NameTypeDescription
ExcludeString Gets or sets the property names to exclude.
AllowString Gets or sets the property names to allow.
FromParamStore Gets or sets Castle.MonoRail.Framework.ParamStore used to indicate where to get the values from
PrefixString Gets the databinding prefix.

Methods

Bind(SmartDispatcherController controller, ParameterInfo parameterInfo) : Object

Implementation of Castle.MonoRail.Framework.IParameterBinder.Bind(Castle.MonoRail.Framework.SmartDispatcherController,System.Reflection.ParameterInfo) and it is used to read the data available and construct the parameter type accordingly.

ParameterDescription
controller The controller instance
parameterInfo The parameter info

CalculateParamPoints(SmartDispatcherController controller, ParameterInfo parameterInfo) : Int32

Implementation of Castle.MonoRail.Framework.IParameterBinder.CalculateParamPoints(Castle.MonoRail.Framework.SmartDispatcherController,System.Reflection.ParameterInfo) and it is used to give the method a weight when overloads are available.

ParameterDescription
controller The controller instance
parameterInfo The parameter info

Google
Search WWW Search castleproject.org