ValidateNeverAttribute Třída

Definice

Označuje, že vlastnost nebo parametr by měly být vyloučeny z ověření. Pokud se použije u vlastnosti, ověřovací systém tato vlastnost vylučuje. Pokud se použije u parametru, ověřovací systém tento parametr vyloučí. Při použití na typ systém ověřování vyloučí všechny vlastnosti v daném typu.

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
Dědičnost
ValidateNeverAttribute
Atributy
Implementuje

Konstruktory

ValidateNeverAttribute()

Metody

ShouldValidateEntry(ValidationEntry, ValidationEntry)

Získá indikaci, jestli entry se má ověřit.

Platí pro