共用方式為


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>

驗證結果。

適用於