DataAnnotationsModelValidator.Validate Method (Object)

.NET Framework (current version)
 

Returns a list of validation error messages for the model.

Namespace:   System.Web.ModelBinding
Assembly:  System.Web (in System.Web.dll)

override Validate : 
        container:Object -> IEnumerable<ModelValidationResult>

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
Return to top
Show: