ModelBinderAttribute Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for