C# Class Rebel.Cms.Web.Mvc.ActionFilters.RequiredFieldAttribute

Makes an action method only respond if particular form field(s) is included in the request
Inheritance: System.Web.Mvc.ActionMethodSelectorAttribute
Mostra file Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
IsValidForRequest ( System.Web.Mvc.ControllerContext controllerContext, MethodInfo methodInfo ) : bool

Ensure that field names specified are found in the request depending on the field match type.

RequiredFieldAttribute ( ) : System.Linq

Constructor

RequiredFieldAttribute ( FieldMatchCount matchCount ) : System.Linq

Constructor

RequiredFieldAttribute ( FieldMatchCount matchCount, FieldMatchType matchType ) : System.Linq

Contructor

Method Details

IsValidForRequest() public method

Ensure that field names specified are found in the request depending on the field match type.
public IsValidForRequest ( System.Web.Mvc.ControllerContext controllerContext, MethodInfo methodInfo ) : bool
controllerContext System.Web.Mvc.ControllerContext
methodInfo System.Reflection.MethodInfo
return bool

RequiredFieldAttribute() public method

Constructor
public RequiredFieldAttribute ( ) : System.Linq
return System.Linq

RequiredFieldAttribute() public method

Constructor
public RequiredFieldAttribute ( FieldMatchCount matchCount ) : System.Linq
matchCount FieldMatchCount
return System.Linq

RequiredFieldAttribute() public method

Contructor
public RequiredFieldAttribute ( FieldMatchCount matchCount, FieldMatchType matchType ) : System.Linq
matchCount FieldMatchCount
matchType FieldMatchType
return System.Linq