ValidateNeverAttribute 類別

定義

表示屬性或參數應該從驗證中排除。 套用至屬性時,驗證系統會排除該屬性。 套用至參數時,驗證系統會排除該參數。 套用至類型時,驗證系統會排除該類型內的所有屬性。

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
繼承
ValidateNeverAttribute
屬性
實作

建構函式

ValidateNeverAttribute()

表示屬性或參數應該從驗證中排除。 套用至屬性時,驗證系統會排除該屬性。 套用至參數時,驗證系統會排除該參數。 套用至類型時,驗證系統會排除該類型內的所有屬性。

方法

ShouldValidateEntry(ValidationEntry, ValidationEntry)

取得是否應該驗證 的 entry 指示。

適用於