BindingBehaviorAttribute Class¶
Specifies the Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehavior
that should be applied.
- Namespace
Microsoft.AspNetCore.Mvc.ModelBinding
- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Inheritance Hierarchy¶
System.Object
System.Attribute
Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehaviorAttribute
Syntax¶
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public class BindingBehaviorAttribute : Attribute, _Attribute
-
class
Microsoft.AspNetCore.Mvc.ModelBinding.
BindingBehaviorAttribute
Constructors¶
-
BindingBehaviorAttribute
(Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehavior)¶ Initializes a new
Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehaviorAttribute
instance.Arguments: behavior (Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehavior) – The Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehavior
to apply.public BindingBehaviorAttribute(BindingBehavior behavior)
-
Properties¶
-
Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehaviorAttribute.
Behavior
¶ Gets the
Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehavior
to apply.Return type: Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehavior public BindingBehavior Behavior { get; }
-