ValueProviderDictionary Class

Definition

Caution

The recommended alternative is to use one of the specific ValueProvider types, such as FormValueProvider.

Note: This API is now obsolete.Represents a dictionary of value providers for the application.

[System.Obsolete("The recommended alternative is to use one of the specific ValueProvider types, such as FormValueProvider.")]
public class ValueProviderDictionary : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,System.Web.Mvc.ValueProviderResult>>, System.Collections.Generic.IDictionary<string,System.Web.Mvc.ValueProviderResult>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,System.Web.Mvc.ValueProviderResult>>, System.Web.Mvc.IValueProvider
type ValueProviderDictionary = class
    interface IDictionary<string, ValueProviderResult>
    interface ICollection<KeyValuePair<string, ValueProviderResult>>
    interface seq<KeyValuePair<string, ValueProviderResult>>
    interface IEnumerable
    interface IValueProvider
Public Class ValueProviderDictionary
Implements ICollection(Of KeyValuePair(Of String, ValueProviderResult)), IDictionary(Of String, ValueProviderResult), IEnumerable(Of KeyValuePair(Of String, ValueProviderResult)), IValueProvider
Inheritance
ValueProviderDictionary
Attributes
Implements

Constructors

ValueProviderDictionary(ControllerContext)

Initializes a new instance of the ValueProviderDictionary class.

Properties

ControllerContext

Gets or sets the controller context.

Count

Gets the number of elements in the collection.

IsReadOnly

Gets a value that indicates whether the collection is read-only.

Item[String]

Gets or sets the ValueProviderResult object that has the specified key.

Keys

Gets a collection that contains the keys of the IDictionary<TKey,TValue> instance.

Values

Gets a collection that contains the values in the IDictionary<TKey,TValue> object.

Methods

Add(KeyValuePair<String,ValueProviderResult>)

Adds the specified item to the collection of value providers.

Add(String, Object)

Adds an element that has the specified key and value to the collection of value providers.

Add(String, ValueProviderResult)

Adds an element that has the specified key and value to the collection of value providers.

Clear()

Removes all items from the collection of value providers.

Contains(KeyValuePair<String,ValueProviderResult>)

Determines whether the collection of value providers contains the specified item.

ContainsKey(String)

Determines whether the collection of value providers contains an element that has the specified key.

CopyTo(KeyValuePair<String,ValueProviderResult>[], Int32)

Copies the elements of the collection to an array, starting at the specified index.

GetEnumerator()

Returns an enumerator that can be used to iterate through the collection.

Remove(KeyValuePair<String,ValueProviderResult>)

Removes the first occurrence of the specified item from the collection of value providers.

Remove(String)

Removes the element that has the specified key from the collection of value providers.

TryGetValue(String, ValueProviderResult)

Gets the value of the element that has the specified key.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that can be used to iterate through a collection.

IValueProvider.ContainsPrefix(String)

Determines whether the collection contains the specified prefix.

IValueProvider.GetValue(String)

Returns a value object using the specified key.

Applies to