BindRequiredAttribute Classe

Définition

Indique qu’une propriété est requise pour la liaison de modèle. Quand il est appliqué à une propriété, le système de la liaison de modèle exige une valeur pour cette propriété. Lorsqu’il est appliqué à un type, le système de liaison de modèle nécessite des valeurs pour toutes les propriétés définies par le type.

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

Constructeurs

BindRequiredAttribute()

Initialise une nouvelle instance de BindRequiredAttribute.

Propriétés

Behavior

Obtient le BindingBehavior à appliquer.

(Hérité de BindingBehaviorAttribute)

S’applique à