Język

BindRequiredAttribute Klasa

Definicja

Wskazuje, że właściwość jest wymagana do powiązania modelu. W przypadku zastosowania do właściwości system powiązania modelu wymaga wartości dla tej właściwości. W przypadku zastosowania do typu system powiązania modelu wymaga wartości dla wszystkich właściwości, które definiuje typ.

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
Dziedziczenie
BindRequiredAttribute
Atrybuty

Konstruktory

Nazwa Opis
BindRequiredAttribute()

Inicjuje nowe BindRequiredAttribute wystąpienie.

Właściwości

Nazwa Opis
Behavior

Pobiera element BindingBehavior do zastosowania.

(Odziedziczone po BindingBehaviorAttribute)

Dotyczy