DataAnnotationsModelValidator.Validate Method (Object)

 

Returns a list of validation error messages for the model.

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

Public Overrides Function Validate (
	container As Object
) As IEnumerable(Of ModelValidationResult)

Parameters

container
Type: System.Object

The container for the model.

Return Value

Type: System.Collections.Generic.IEnumerable(Of ModelValidationResult)

A list of validation error messages for the model, or an empty list if no errors have occurred.

Return to top
Show: