CollectionModelBinder<TElement> Class
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.
IModelBinder implementation for binding collection values.
generic <typename TElement>
public ref class CollectionModelBinder : Microsoft::AspNetCore::Mvc::ModelBinding::ICollectionModelBinder, Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder
public class CollectionModelBinder<TElement> : Microsoft.AspNetCore.Mvc.ModelBinding.ICollectionModelBinder, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder
type CollectionModelBinder<'Element> = class
interface ICollectionModelBinder
interface IModelBinder
Public Class CollectionModelBinder(Of TElement)
Implements ICollectionModelBinder, IModelBinder
- TElement
Type of elements in the collection.
- Inheritance
-
CollectionModelBinder<TElement>
- Derived
- Implements
Collection |
Creates a new CollectionModelBinder<TElement>. |
Collection |
Creates a new CollectionModelBinder<TElement>. |
Collection |
Creates a new CollectionModelBinder<TElement>. |
Collection |
Obsolete.
This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an ILoggerFactory. Creates a new CollectionModelBinder<TElement>. |
Element |
Gets the IModelBinder instances for binding collection elements. |
Logger |
The ILogger used for logging in this binder. |
Add |
Add a ModelError to ModelState if IsBindingRequired. |
Bind |
Attempts to bind a model. |
Can |
Gets an indication whether or not this ICollectionModelBinder implementation can create
an Object assignable to |
Convert |
Gets an Object assignable to |
Copy |
Adds values from |
Create |
Create an Object assignable to |
Create |
Create an instance of |
Product | Versions |
---|---|
ASP.NET Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |