ValidatableObjectAdapter.Validate(Object) 方法

定义

验证指定的对象。

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

参数

container
Object

要验证的对象的容器。

返回

IEnumerable<ModelValidationResult>

验证结果。

适用于