BindRequiredAttribute BindRequiredAttribute BindRequiredAttribute Class

Definition

Indicates that a property is required for model binding. When applied to a property, the model binding system requires a value for that property. When applied to a type, the model binding system requires values for all properties that type defines.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Property | System.AttributeTargets.Parameter, AllowMultiple=false, Inherited=true)]
public sealed class BindRequiredAttribute : Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehaviorAttribute
type BindRequiredAttribute = class
    inherit BindingBehaviorAttribute
Public NotInheritable Class BindRequiredAttribute
Inherits BindingBehaviorAttribute
Inheritance
Attributes

Constructors

BindRequiredAttribute() BindRequiredAttribute() BindRequiredAttribute()

Initializes a new BindRequiredAttribute instance.

Properties

Behavior Behavior Behavior

Gets the BindingBehavior to apply.

(Inherited from BindingBehaviorAttribute)

Applies to