Export (0) Print
Expand All

ValidationExtensions Methods

The ValidationExtensions type exposes the following members.

  Name Description
Public method Static member Validate Retrieves the validation metadata for the specified model and applies each rule to the data field.
Public method Static member ValidateFor<TModel, TProperty> Retrieves the validation metadata for the specified model and applies each rule to the data field.
Public method Static member ValidationMessage(HtmlHelper, String) Displays a validation message if an error exists for the specified field in the ModelStateDictionary object.
Public method Static member ValidationMessage(HtmlHelper, String, IDictionary<String, Object>) Displays a validation message if an error exists for the specified field in the ModelStateDictionary object.
Public method Static member ValidationMessage(HtmlHelper, String, Object) Displays a validation message if an error exists for the specified field in the ModelStateDictionary object.
Public method Static member ValidationMessage(HtmlHelper, String, String) Displays a validation message if an error exists for the specified field in the ModelStateDictionary object.
Public method Static member ValidationMessage(HtmlHelper, String, String, IDictionary<String, Object>) Displays a validation message if an error exists for the specified field in the ModelStateDictionary object.
Public method Static member ValidationMessage(HtmlHelper, String, String, Object) Displays a validation message if an error exists for the specified field in the ModelStateDictionary object.
Public method Static member ValidationMessageFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>) Returns the HTML markup for a validation-error message for each data field that is represented by the specified expression.
Public method Static member ValidationMessageFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<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.
Public method Static member ValidationMessageFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, String, IDictionary<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.
Public method Static member ValidationMessageFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<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.
Public method Static member ValidationSummary(HtmlHelper) Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object.
Public method Static member 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.
Public method Static member ValidationSummary(HtmlHelper, String) Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object.
Public method Static member 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.
Public method Static member ValidationSummary(HtmlHelper, String, IDictionary<String, Object>) Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object.
Public method Static member ValidationSummary(HtmlHelper, String, Object) Returns an unordered list (ul element) of validation messages in the ModelStateDictionary object.
Public method Static member ValidationSummary(HtmlHelper, Boolean, String, IDictionary<String, Object>) Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object and optionally displays only model-level errors.
Public method Static member 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.
Top
Show:
© 2014 Microsoft