ValidationHtmlAttributeProvider Class

Definition

Contract for a service providing validation attributes for expressions.

C#
public abstract class ValidationHtmlAttributeProvider
Inheritance
ValidationHtmlAttributeProvider
Derived

Constructors

Methods

AddAndTrackValidationAttributes(ViewContext, ModelExplorer, String, IDictionary<String,String>)

Adds validation-related HTML attributes to the attributes if client validation is enabled and validation attributes have not yet been added for this expression in the current <form>.

AddValidationAttributes(ViewContext, ModelExplorer, IDictionary<String,String>)

Adds validation-related HTML attributes to the attributes if client validation is enabled.

Applies to

Tuote Versiot
ASP.NET Core 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0