BindRequiredAttribute Třída

Definice

Indikuje, že pro vazbu modelu je požadovaná vlastnost. Při použití na vlastnost vyžaduje systém vazby modelu hodnotu pro tuto vlastnost. Při použití na typ vyžaduje systém vazby modelu hodnoty pro všechny vlastnosti, které typ definuje.

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
Dědičnost
BindRequiredAttribute
Atributy

Konstruktory

BindRequiredAttribute()

Inicializuje novou BindRequiredAttribute instanci.

Vlastnosti

Behavior

Získá , BindingBehavior která se má použít.

(Zděděno od BindingBehaviorAttribute)

Platí pro