ValidationExtensions Methods
The ValidationExtensions type exposes the following members.
| Name | Description | |
|---|---|---|
|
Validate | Retrieves the validation metadata for the specified model and applies each rule to the data field. |
|
ValidateFor(Of TModel, TProperty) | Retrieves the validation metadata for the specified model and applies each rule to the data field. |
|
ValidationMessage(HtmlHelper, String) | Displays a validation message if an error exists for the specified field in the ModelStateDictionary object. |
|
ValidationMessage(HtmlHelper, String, IDictionary(Of String, Object)) | Displays a validation message if an error exists for the specified field in the ModelStateDictionary object. |
|
ValidationMessage(HtmlHelper, String, Object) | Displays a validation message if an error exists for the specified field in the ModelStateDictionary object. |
|
ValidationMessage(HtmlHelper, String, String) | Displays a validation message if an error exists for the specified field in the ModelStateDictionary object. |
|
ValidationMessage(HtmlHelper, String, String, IDictionary(Of String, Object)) | Displays a validation message if an error exists for the specified field in the ModelStateDictionary object. |
|
ValidationMessage(HtmlHelper, String, String, Object) | Displays a validation message if an error exists for the specified field in the ModelStateDictionary object. |
|
ValidationMessageFor(Of TModel, TProperty)(HtmlHelper(Of TModel), Expression(Of Func(Of TModel, TProperty))) | Returns the HTML markup for a validation-error message for each data field that is represented by the specified expression. |
|
ValidationMessageFor(Of TModel, TProperty)(HtmlHelper(Of TModel), Expression(Of Func(Of TModel, TProperty)), String) | Returns the HTML markup for a validation-error message for each data field that is represented by the specified expression, using the specified message. |
|
ValidationMessageFor(Of TModel, TProperty)(HtmlHelper(Of TModel), Expression(Of Func(Of TModel, TProperty)), String, IDictionary(Of String, Object)) | Returns the HTML markup for a validation-error message for each data field that is represented by the specified expression, using the specified message and HTML attributes. |
|
ValidationMessageFor(Of TModel, TProperty)(HtmlHelper(Of TModel), Expression(Of Func(Of TModel, TProperty)), String, Object) | Returns the HTML markup for a validation-error message for each data field that is represented by the specified expression, using the specified message and HTML attributes. |
|
ValidationSummary(HtmlHelper) | Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object. |
|
ValidationSummary(HtmlHelper, Boolean) | Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object and optionally displays only model-level errors. |
|
ValidationSummary(HtmlHelper, String) | Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object. |
|
ValidationSummary(HtmlHelper, Boolean, String) | Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object and optionally displays only model-level errors. |
|
ValidationSummary(HtmlHelper, String, IDictionary(Of String, Object)) | Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object. |
|
ValidationSummary(HtmlHelper, String, Object) | Returns an unordered list (ul element) of validation messages in the ModelStateDictionary object. |
|
ValidationSummary(HtmlHelper, Boolean, String, IDictionary(Of String, Object)) | Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object and optionally displays only model-level errors. |
|
ValidationSummary(HtmlHelper, Boolean, String, Object) | Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object and optionally displays only model-level errors. |
Show: