Share via


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

適用於