ValidateNeverAttribute Sınıf

Tanım

Bir özelliğin veya parametrenin doğrulamanın dışında tutulacak olduğunu gösterir. Bir özele uygulandığında doğrulama sistemi bu özelliği dışlar. Bir parametreye uygulandığında doğrulama sistemi bu parametreyi dışlar. Bir türe uygulandığında, doğrulama sistemi bu tür içindeki tüm özellikleri dışlar.

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
Devralma
ValidateNeverAttribute
Öznitelikler
Uygulamalar

Oluşturucular

ValidateNeverAttribute()

Yöntemler

ShouldValidateEntry(ValidationEntry, ValidationEntry)

doğrulanması entry gerektiğine dair bir gösterge alır.

Şunlara uygulanır