共用方式為


IModelValidator.Validate(ModelValidationContext) 方法

定義

驗證模型值。

public:
 System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ModelValidationResult ^> ^ Validate(Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ModelValidationContext ^ context);
public System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationResult> Validate (Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationContext context);
abstract member Validate : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationContext -> seq<Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationResult>
Public Function Validate (context As ModelValidationContext) As IEnumerable(Of ModelValidationResult)

參數

傳回

的清單 ModelValidationResult ,指出驗證模型值的結果。

適用於