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 取得します。

適用対象