ModelBinderAttribute<TBinder> Class
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.
An attribute that can specify a model name or type of IModelBinder to use for binding.
public class ModelBinderAttribute<TBinder> : Microsoft.AspNetCore.Mvc.ModelBinderAttribute where TBinder : IModelBinder
type ModelBinderAttribute<'Binder (requires 'Binder :> IModelBinder)> = class
inherit ModelBinderAttribute
Public Class ModelBinderAttribute(Of TBinder)
Inherits ModelBinderAttribute
Type Parameters
- TBinder
A Type which implements IModelBinder.
- Inheritance
Remarks
This is a derived generic variant of the ModelBinderAttribute. Ensure that only one instance of either attribute is provided on the target.
Constructors
ModelBinderAttribute<TBinder>() |
Initializes a new instance of ModelBinderAttribute. |
Properties
BinderType |
A Type which implements either IModelBinder. (Inherited from ModelBinderAttribute) |
BindingSource |
Gets the BindingSource. (Inherited from ModelBinderAttribute) |
Name |
Model name. (Inherited from ModelBinderAttribute) |