DataAnnotationsModelValidator.Validate Method (Object)
.NET Framework (current version)
Returns a list of validation error messages for the model.
Assembly: System.Web (in System.Web.dll)
Parameters
- container
-
Type:
System.Object
The container for the model.
Return Value
Type: System.Collections.Generic.IEnumerable<ModelValidationResult>The list of validation error messages, or an empty list if no errors are found.
.NET Framework
Available since 4.5
Available since 4.5
Show: