ValidateNeverAttribute ValidateNeverAttribute ValidateNeverAttribute ValidateNeverAttribute Class

Definition

IPropertyValidationFilter implementation that unconditionally indicates a property should be excluded from validation. When applied to a property, the validation system excludes that property. When applied to a type, the validation system excludes all properties within that type.

public ref class ValidateNeverAttribute sealed : 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
type ValidateNeverAttribute = class
    inherit Attribute
    interface IPropertyValidationFilter
Public NotInheritable Class ValidateNeverAttribute
Inherits Attribute
Implements IPropertyValidationFilter
Inheritance
ValidateNeverAttributeValidateNeverAttributeValidateNeverAttributeValidateNeverAttribute
Attributes
Implements

Constructors

ValidateNeverAttribute() ValidateNeverAttribute() ValidateNeverAttribute() ValidateNeverAttribute()

Methods

ShouldValidateEntry(ValidationEntry, ValidationEntry) ShouldValidateEntry(ValidationEntry, ValidationEntry) ShouldValidateEntry(ValidationEntry, ValidationEntry) ShouldValidateEntry(ValidationEntry, ValidationEntry)

Applies to