IPropertyValidationFilter.ShouldValidateEntry(ValidationEntry, ValidationEntry) 方法

定义

获取是否 entry 应验证的指示。

public:
 bool ShouldValidateEntry(Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ValidationEntry entry, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ValidationEntry parentEntry);
public bool ShouldValidateEntry (Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationEntry entry, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationEntry parentEntry);
abstract member ShouldValidateEntry : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationEntry * Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationEntry -> bool
Public Function ShouldValidateEntry (entry As ValidationEntry, parentEntry As ValidationEntry) As Boolean

参数

entry
ValidationEntry

ValidationEntry 要检查的。

parentEntry
ValidationEntry

ValidationEntry 包含 entry

返回

Boolean

如果 entry 应验证,则为 true;否则为 false

适用于