ModelValidator.Validate(Object) 方法

定义

在派生类中实现时验证对象。

public:
 abstract System::Collections::Generic::IEnumerable<System::Web::ModelBinding::ModelValidationResult ^> ^ Validate(System::Object ^ container);
public abstract System.Collections.Generic.IEnumerable<System.Web.ModelBinding.ModelValidationResult> Validate (object container);
abstract member Validate : obj -> seq<System.Web.ModelBinding.ModelValidationResult>
Public MustOverride Function Validate (container As Object) As IEnumerable(Of ModelValidationResult)

参数

container
Object

容器。

返回

IEnumerable<ModelValidationResult>

验证结果的集合。

适用于