BindRequiredAttribute Classe

Definizione

Indica che è necessaria una proprietà per l'associazione di modelli. Se è applicato a una proprietà, il sistema di associazione di modelli richiede un valore per tale proprietà. Quando applicato a un tipo, il sistema di associazione del modello richiede valori per tutte le proprietà definite dal tipo.

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
Ereditarietà
BindRequiredAttribute
Attributi

Costruttori

BindRequiredAttribute()

Inizializza una nuova istanza di BindRequiredAttribute.

Proprietà

Behavior

Ottiene l'oggetto BindingBehavior da applicare.

(Ereditato da BindingBehaviorAttribute)

Si applica a