语言

ValidateNeverAttribute 类

定义

指示应从验证中排除属性或参数。 应用于属性时,验证系统将排除该属性。 应用于参数时,验证系统将排除该参数。 应用于类型时,验证系统将排除该类型中的所有属性。

public ref class ValidateNeverAttribute sealed : Attribute, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::IPropertyValidationFilter
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class ValidateNeverAttribute : Attribute, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IPropertyValidationFilter
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class ValidateNeverAttribute : Attribute, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IPropertyValidationFilter
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type ValidateNeverAttribute = class
    inherit Attribute
    interface IPropertyValidationFilter
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type ValidateNeverAttribute = class
    inherit Attribute
    interface IPropertyValidationFilter
Public NotInheritable Class ValidateNeverAttribute
Inherits Attribute
Implements IPropertyValidationFilter
继承
ValidateNeverAttribute
属性
实现

构造函数

名称 说明
ValidateNeverAttribute()

指示应从验证中排除属性或参数。 应用于属性时,验证系统将排除该属性。 应用于参数时,验证系统将排除该参数。 应用于类型时,验证系统将排除该类型中的所有属性。

方法

名称 说明
ShouldValidateEntry(ValidationEntry, ValidationEntry)

获取指示是否 entry 应验证 。

适用于