ValidateInputAttribute ValidateInputAttribute ValidateInputAttribute Class

Definition

Represents an attribute that is used to mark action methods whose input must be validated.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public class ValidateInputAttribute : System.Web.Mvc.FilterAttribute, System.Web.Mvc.IAuthorizationFilter
type ValidateInputAttribute = class
    inherit FilterAttribute
    interface IAuthorizationFilter
Public Class ValidateInputAttribute
Inherits FilterAttribute
Implements IAuthorizationFilter
Inheritance
ValidateInputAttributeValidateInputAttributeValidateInputAttribute
Attributes
Implements

Constructors

ValidateInputAttribute(Boolean) ValidateInputAttribute(Boolean) ValidateInputAttribute(Boolean)

Initializes a new instance of the ValidateInputAttribute class.

Properties

AllowMultiple AllowMultiple AllowMultiple

Gets or sets a value that indicates whether more than one instance of the filter attribute can be specified.

(Inherited from FilterAttribute)
EnableValidation EnableValidation EnableValidation

Gets or sets a value that indicates whether to enable validation.

Order Order Order

Gets or sets the order in which the action filters are executed.

(Inherited from FilterAttribute)

Methods

OnAuthorization(AuthorizationContext) OnAuthorization(AuthorizationContext) OnAuthorization(AuthorizationContext)

Called when authorization is required.

Applies to