BindingBehavior Enumeration
Enumerates model-binding behavior options.
Namespace: Microsoft.Web.Mvc.ModelBinding
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Syntax
public enum BindingBehavior
public enum class BindingBehavior
type BindingBehavior
Public Enumeration BindingBehavior
Members
Member name | Description | |
---|---|---|
Never | The property should be excluded from model binding. |
|
Optional | The property should be model bound if a value is available from the value provider. |
|
Required | The property is required for model binding. |
See Also
Microsoft.Web.Mvc.ModelBinding Namespace
Return to top