Share via


ValidateInputAttribute.EnableValidation Property

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

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Property EnableValidation As Boolean
    Get
    Private Set
public bool EnableValidation { get; private set; }
public:
property bool EnableValidation {
    bool get ();
    private: void set (bool value);
}

Property Value

Type: System.Boolean
true if validation is enabled; otherwise, false.

See Also

Reference

ValidateInputAttribute Class

System.Web.Mvc Namespace