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)

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)

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: