ModelBinderAttribute Constructors

Definition

Overloads

ModelBinderAttribute()

Initializes a new instance of ModelBinderAttribute.

ModelBinderAttribute(Type)

Initializes a new instance of ModelBinderAttribute.

ModelBinderAttribute()

Source:
ModelBinderAttribute.cs
Source:
ModelBinderAttribute.cs

Initializes a new instance of ModelBinderAttribute.

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

Applies to

ModelBinderAttribute(Type)

Source:
ModelBinderAttribute.cs
Source:
ModelBinderAttribute.cs

Initializes a new instance of 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)

Parameters

binderType
Type

A Type which implements IModelBinder.

Remarks

Subclass this attribute and set BindingSource if Custom is not correct for the specified binderType.

Applies to