Export (0) Print
Expand All

DataAnnotationsModelValidator.Validate Method

Returns a list of validation error messages for the model.

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

'Declaration
Public Overrides Function Validate ( _
	container As Object _
) As IEnumerable(Of ModelValidationResult)
'Usage
Dim instance As DataAnnotationsModelValidator 
Dim container As Object 
Dim returnValue As IEnumerable(Of ModelValidationResult)

returnValue = instance.Validate(container)

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.
Show:
© 2014 Microsoft