Class ModelBinderProviderCollection
No content here will be updated; please do not add material here.
public class ModelBinderProviderCollection : Collection<IModelBinderProvider>, IList<IModelBinderProvider>, ICollection<IModelBinderProvider>, IList, ICollection, IReadOnlyList<IModelBinderProvider>, IReadOnlyCollection<IModelBinderProvider>, IEnumerable<IModelBinderProvider>, IEnumerable
- Inheritance
-
ModelBinderProviderCollection
- Implements
- Inherited Members
Constructors
ModelBinderProviderCollection()
Initializes a new instance of the ModelBinderProviderCollection class.
public ModelBinderProviderCollection()
ModelBinderProviderCollection(IList<IModelBinderProvider>)
Initializes a new instance of the ModelBinderProviderCollection class using a list of model binder providers.
public ModelBinderProviderCollection(IList<IModelBinderProvider> list)
Parameters
list
IList<IModelBinderProvider>A list of model binder providers.
Methods
ClearItems()
Removes all elements from the collection.
protected override void ClearItems()
GetBinder(Type)
Returns a model binder of the specified type.
public IModelBinder GetBinder(Type modelType)
Parameters
modelType
TypeThe type of the model binder.
Returns
- IModelBinder
A model binder of the specified type.
InsertItem(int, IModelBinderProvider)
Inserts a model binder provider into the ModelBinderProviderCollection at the specified index.
protected override void InsertItem(int index, IModelBinderProvider item)
Parameters
index
intThe index.
item
IModelBinderProviderThe model binder provider.
RemoveItem(int)
Removes the element at the specified index of the collection.
protected override void RemoveItem(int index)
Parameters
index
intThe zero-based index of the element to remove.
SetItem(int, IModelBinderProvider)
Replaces the model binder provider element at the specified index.
protected override void SetItem(int index, IModelBinderProvider item)
Parameters
index
intThe index.
item
IModelBinderProviderThe model binder provider.