共用方式為


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

容器。

傳回

驗證結果的集合。

適用於