Method AddValidationAttributes
| Improve this Doc View SourceAddValidationAttributes(ViewContext, TagBuilder, String, Column)
Adds validation attributes to the tagBuilder
if client validation
is enabled.
Declaration
protected virtual void AddValidationAttributes(ViewContext viewContext, TagBuilder tagBuilder, string fullHtmlFieldName, Column column)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Mvc.Rendering.ViewContext | viewContext | A Microsoft.AspNetCore.Mvc.Rendering.ViewContext instance for the current scope. |
Microsoft.AspNetCore.Mvc.Rendering.TagBuilder | tagBuilder | A Microsoft.AspNetCore.Mvc.Rendering.TagBuilder instance. |
System.String | fullHtmlFieldName | The full HTML field name. |
Column | column | The column. |