BindingBehaviorAttribute(BindingBehavior) 构造函数

定义

初始化一个新 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.BindingBehaviorAttribute
Public Sub New (behavior As BindingBehavior)

参数

behavior
BindingBehavior

要应用的 BindingBehavior

适用于