ModelValidator.Validate Method
When implemented in a derived class, validates the object.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public MustOverride Function Validate ( _
container As Object _
) As IEnumerable(Of ModelValidationResult)
public abstract IEnumerable<ModelValidationResult> Validate(
Object container
)
public:
virtual IEnumerable<ModelValidationResult^>^ Validate(
Object^ container
) abstract
Parameters
- container
Type: System.Object
The container.
Return Value
Type: System.Collections.Generic.IEnumerable<ModelValidationResult>
A list of validation results.