Decorates a public property in a ViewComponent to have the framework automatically bind the value using the ComponentParams dictionary. By default The property name is going to be used as a key to query the params.

You can also use the Required property to define that a property is non-optional.

Namespace: Castle.MonoRail.Framework
Assembly:  Castle.MonoRail.Framework (in Castle.MonoRail.Framework.dll)
Version: 1.0.3.0

Syntax

C#
[SerializableAttribute]
[AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple = false, 
	Inherited = true)]
public class ViewComponentParamAttribute : Attribute

Inheritance Hierarchy

System..::Object
  System..::Attribute
    Castle.MonoRail.Framework..::ViewComponentParamAttribute

See Also