Method GenerateValidationMessage
| Improve this Doc View SourceGenerateValidationMessage(ViewContext, String, Column, String, String, Object)
Generate a tag element if the viewContext's ModelState contains an error for the column.
Declaration
TagBuilder GenerateValidationMessage(ViewContext viewContext, string fullHtmlFieldName, Column column, string message, string tag, object htmlAttributes)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.AspNetCore.Mvc.Rendering.ViewContext | viewContext | The view context. |
| System.String | fullHtmlFieldName | The full HTML field name. |
| Column | column | The column. |
| System.String | message | The error message. |
| System.String | tag | The tag. |
| System.Object | htmlAttributes | The HTML attributes. |
Returns
| Type | Description |
|---|---|
| Microsoft.AspNetCore.Mvc.Rendering.TagBuilder | The tag builder. |