ValidateNeverAttribute Classe

Définition

Indique qu’une propriété ou un paramètre doit être exclu de la validation. Lorsqu’il est appliqué à une propriété, le système de validation exclut cette propriété. Lorsqu’il est appliqué à un paramètre, le système de validation exclut ce paramètre. Lorsqu’il est appliqué à un type, le système de validation exclut toutes les propriétés de ce 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
[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)>]
type ValidateNeverAttribute = class
    inherit Attribute
    interface IPropertyValidationFilter
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type ValidateNeverAttribute = class
    inherit Attribute
    interface IPropertyValidationFilter
Public NotInheritable Class ValidateNeverAttribute
Inherits Attribute
Implements IPropertyValidationFilter
Héritage
ValidateNeverAttribute
Attributs
Implémente

Constructeurs

ValidateNeverAttribute()

Indique qu’une propriété ou un paramètre doit être exclu de la validation. Lorsqu’il est appliqué à une propriété, le système de validation exclut cette propriété. Lorsqu’il est appliqué à un paramètre, le système de validation exclut ce paramètre. Lorsqu’il est appliqué à un type, le système de validation exclut toutes les propriétés de ce type.

Méthodes

ShouldValidateEntry(ValidationEntry, ValidationEntry)

Obtient une indication indiquant si le entry doit être validé.

S’applique à