ModelValidator.Validate Method (Object)

 

When implemented in a derived class, validates the object.

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

Syntax

public abstract IEnumerable<ModelValidationResult> Validate(
    object container
)
public:
virtual IEnumerable<ModelValidationResult^>^ Validate(
    Object^ container
) abstract
abstract Validate : 
        container:Object -> IEnumerable<ModelValidationResult>
Public MustOverride Function Validate (
    container As Object
) As IEnumerable(Of ModelValidationResult)

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ModelValidationResult>

A list of validation results.

See Also

ModelValidator Class
System.Web.Mvc Namespace

Return to top