ValidationVisitor.VisitComplexType(IValidationStrategy) 方法

定义

验证复杂类型,这涵盖了除枚举和复杂类型外的所有 VisitSimpleType。

protected:
 virtual bool VisitComplexType(Microsoft::AspNetCore::Mvc::ModelBinding::Validation::IValidationStrategy ^ defaultStrategy);
protected virtual bool VisitComplexType (Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IValidationStrategy defaultStrategy);
abstract member VisitComplexType : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IValidationStrategy -> bool
override this.VisitComplexType : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IValidationStrategy -> bool
Protected Overridable Function VisitComplexType (defaultStrategy As IValidationStrategy) As Boolean

参数

defaultStrategy
IValidationStrategy

要使用的默认验证策略。

返回

Boolean

true 如果有效,则为; 否则为 false

适用于