BindingBehaviorAttribute(BindingBehavior) 构造函数  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化一个新 BindingBehaviorAttribute 实例。
public:
 BindingBehaviorAttribute(Microsoft::AspNetCore::Mvc::ModelBinding::BindingBehavior behavior);public BindingBehaviorAttribute(Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehavior behavior);new Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehaviorAttribute : Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehavior -> Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehaviorAttributePublic Sub New (behavior As BindingBehavior)参数
- behavior
- BindingBehavior
要应用的 BindingBehavior。