语言

ModelBinderAttribute 构造函数

定义

重载

名称 说明
ModelBinderAttribute()

初始化 ModelBinderAttribute 的新实例。

ModelBinderAttribute(Type)

初始化 ModelBinderAttribute 的新实例。

ModelBinderAttribute()

Source:
ModelBinderAttribute.cs
Source:
ModelBinderAttribute.cs
Source:
ModelBinderAttribute.cs

初始化 ModelBinderAttribute 的新实例。

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

适用于

ModelBinderAttribute(Type)

Source:
ModelBinderAttribute.cs
Source:
ModelBinderAttribute.cs
Source:
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。

注解

对此属性进行子类化,如果 Custom 对于指定的 binderType不正确,则设置 BindingSource 。

适用于