BindNeverAttribute Classe

Définition

Indique qu’une propriété doit être exclue de la liaison de modèle. Lorsqu’il est appliqué à une propriété, le système de liaison de modèle exclut cette propriété. Lorsqu’il est appliqué à un type, le système de liaison de modèle exclut toutes les propriétés définies par le type.

public ref class BindNeverAttribute sealed : Microsoft::AspNetCore::Mvc::ModelBinding::BindingBehaviorAttribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class BindNeverAttribute : Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehaviorAttribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class BindNeverAttribute : Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehaviorAttribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type BindNeverAttribute = class
    inherit BindingBehaviorAttribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type BindNeverAttribute = class
    inherit BindingBehaviorAttribute
Public NotInheritable Class BindNeverAttribute
Inherits BindingBehaviorAttribute
Héritage
BindNeverAttribute
Attributs

Constructeurs

BindNeverAttribute()

Initialise une nouvelle instance de BindNeverAttribute.

Propriétés

Behavior

Obtient le BindingBehavior à appliquer.

(Hérité de BindingBehaviorAttribute)

S’applique à