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
Afficher le fichier Open project: RebelCMS/rebelcmsxu5

Méthodes publiques

Méthode 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 méthode

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
Résultat bool

RequiredFieldAttribute() public méthode

Constructor
public RequiredFieldAttribute ( ) : System.Linq
Résultat System.Linq

RequiredFieldAttribute() public méthode

Constructor
public RequiredFieldAttribute ( FieldMatchCount matchCount ) : System.Linq
matchCount FieldMatchCount
Résultat System.Linq

RequiredFieldAttribute() public méthode

Contructor
public RequiredFieldAttribute ( FieldMatchCount matchCount, FieldMatchType matchType ) : System.Linq
matchCount FieldMatchCount
matchType FieldMatchType
Résultat System.Linq