BindRequiredAttribute Класс

Определение

Указывает, что для привязки модели требуется свойство . Если он применяется к свойству, система привязки модели требует наличия значения у этого свойства. При применении к типу система привязки модели требует значений для всех свойств, которые определяет тип.

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
Наследование
BindRequiredAttribute
Атрибуты

Конструкторы

Имя Описание
BindRequiredAttribute()

Инициализирует новый экземпляр класса BindRequiredAttribute.

Свойства

Имя Описание
Behavior

Возвращает объект для BindingBehavior применения.

(Унаследовано от BindingBehaviorAttribute)

Применяется к