ValueProviderDictionary ValueProviderDictionary ValueProviderDictionary Class

Definition

Warning

This API is now obsolete.

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
ValueProviderDictionaryValueProviderDictionaryValueProviderDictionary
Attributes
Implements

Constructors

ValueProviderDictionary(ControllerContext) ValueProviderDictionary(ControllerContext) ValueProviderDictionary(ControllerContext)

Initializes a new instance of the ValueProviderDictionary class.

Properties

ControllerContext ControllerContext ControllerContext

Gets or sets the controller context.

Count Count Count

Gets the number of elements in the collection.

IsReadOnly IsReadOnly IsReadOnly

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

Item[String] Item[String] Item[String]

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

Keys Keys Keys

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

Values Values Values

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

Methods

Add(KeyValuePair<String,ValueProviderResult>) Add(KeyValuePair<String,ValueProviderResult>) Add(KeyValuePair<String,ValueProviderResult>)

Adds the specified item to the collection of value providers.

Add(String, Object) Add(String, Object) Add(String, Object)

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

Add(String, ValueProviderResult) Add(String, ValueProviderResult) Add(String, ValueProviderResult)

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

Clear() Clear() Clear()

Removes all items from the collection of value providers.

Contains(KeyValuePair<String,ValueProviderResult>) Contains(KeyValuePair<String,ValueProviderResult>) Contains(KeyValuePair<String,ValueProviderResult>)

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

ContainsKey(String) ContainsKey(String) ContainsKey(String)

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

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

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

GetEnumerator() GetEnumerator() GetEnumerator()

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

Remove(KeyValuePair<String,ValueProviderResult>) Remove(KeyValuePair<String,ValueProviderResult>) Remove(KeyValuePair<String,ValueProviderResult>)

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

Remove(String) Remove(String) Remove(String)

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

TryGetValue(String, ValueProviderResult) TryGetValue(String, ValueProviderResult) TryGetValue(String, ValueProviderResult)

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

Explicit Interface Implementations

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

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

IValueProvider.ContainsPrefix(String) IValueProvider.ContainsPrefix(String) IValueProvider.ContainsPrefix(String)

Determines whether the collection contains the specified prefix.

IValueProvider.GetValue(String) IValueProvider.GetValue(String) IValueProvider.GetValue(String)

Returns a value object using the specified key.

Applies to