Table of Contents

Class ValueProviderFactoryCollection

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

Represents the collection of value-provider factories for the application.

public class ValueProviderFactoryCollection : Collection<ValueProviderFactory>, IList<ValueProviderFactory>, ICollection<ValueProviderFactory>, IList, ICollection, IReadOnlyList<ValueProviderFactory>, IReadOnlyCollection<ValueProviderFactory>, IEnumerable<ValueProviderFactory>, IEnumerable
Inheritance
ValueProviderFactoryCollection
Implements
Inherited Members

Constructors

ValueProviderFactoryCollection()

Initializes a new instance of the ValueProviderFactoryCollection class.

public ValueProviderFactoryCollection()

ValueProviderFactoryCollection(IList<ValueProviderFactory>)

Initializes a new instance of the ValueProviderFactoryCollection class using the specified list of value-provider factories.

public ValueProviderFactoryCollection(IList<ValueProviderFactory> list)

Parameters

list IList<ValueProviderFactory>

A list of value-provider factories to initialize the collection with.

Methods

ClearItems()

Removes all elements from the collection.

protected override void ClearItems()

GetValueProvider(ControllerContext)

Returns the value-provider factory for the specified controller context.

public IValueProvider GetValueProvider(ControllerContext controllerContext)

Parameters

controllerContext ControllerContext

An object that encapsulates information about the current HTTP request.

Returns

IValueProvider

The value-provider factory object for the specified controller context.

InsertItem(int, ValueProviderFactory)

Inserts the specified value-provider factory object at the specified index location.

protected override void InsertItem(int index, ValueProviderFactory item)

Parameters

index int

The zero-based index location at which to insert the value provider into the collection.

item ValueProviderFactory

The value-provider factory object to insert.

RemoveItem(int)

Removes the element at the specified index of the Collection<T>.

protected override void RemoveItem(int index)

Parameters

index int

The zero-based index of the element to remove.

Exceptions

ArgumentOutOfRangeException

Index is less than zero.-or-Index is equal to or greater than Count

SetItem(int, ValueProviderFactory)

Sets the specified value-provider factory object at the given index location.

protected override void SetItem(int index, ValueProviderFactory item)

Parameters

index int

The zero-based index location at which to insert the value provider into the collection.

item ValueProviderFactory

The value-provider factory object to set.