BindingBehavior 枚举

定义

枚举模型绑定的行为选项。Enumerates model-binding behavior options.

public enum class BindingBehavior
public enum BindingBehavior
type BindingBehavior = 
Public Enum BindingBehavior
继承
BindingBehavior

字段

Never 1

应从模型绑定中排除的属性。The property should be excluded from model binding.

Optional 0

如果值能从值提供程序获得,属性就应该是模型绑定的。The property should be model bound if a value is available from the value provider.

Required 2

模型绑定需要的属性。The property is required for model binding.

适用于