Share via


ModelBinderAttribute 建構函式

定義

多載

ModelBinderAttribute()

初始化 ModelBinderAttribute 的新執行個體。

ModelBinderAttribute(Type)

初始化 ModelBinderAttribute 的新執行個體。

ModelBinderAttribute()

來源:
ModelBinderAttribute.cs
來源:
ModelBinderAttribute.cs

初始化 ModelBinderAttribute 的新執行個體。

public:
 ModelBinderAttribute();
public ModelBinderAttribute ();
Public Sub New ()

適用於

ModelBinderAttribute(Type)

來源:
ModelBinderAttribute.cs
來源:
ModelBinderAttribute.cs

初始化 ModelBinderAttribute 的新執行個體。

public:
 ModelBinderAttribute(Type ^ binderType);
public ModelBinderAttribute (Type binderType);
new Microsoft.AspNetCore.Mvc.ModelBinderAttribute : Type -> Microsoft.AspNetCore.Mvc.ModelBinderAttribute
Public Sub New (binderType As Type)

參數

binderType
Type

Type 作 的 IModelBinder

備註

這個屬性的子類別,如果不是指定的 binderType ,請設定 BindingSourceCustom

適用於