ValueProviderDictionary Class

 

Note: This API is now obsolete.

Note: This API is now obsolete.

Represents a dictionary of value providers for the application.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Inheritance Hierarchy

System.Object
  System.Web.Mvc.ValueProviderDictionary

Syntax

[ObsoleteAttribute("The recommended alternative is to use one of the specific ValueProvider types, such as FormValueProvider.")]
public class ValueProviderDictionary : IDictionary<string, ValueProviderResult>, 
    ICollection<KeyValuePair<string, ValueProviderResult>>, IEnumerable<KeyValuePair<string, ValueProviderResult>>, 
    IEnumerable, IValueProvider
[ObsoleteAttribute("The recommended alternative is to use one of the specific ValueProvider types, such as FormValueProvider.")]
public ref class ValueProviderDictionary : IDictionary<String^, ValueProviderResult^>, 
    ICollection<KeyValuePair<String^, ValueProviderResult^>>, IEnumerable<KeyValuePair<String^, ValueProviderResult^>>, 
    IEnumerable, IValueProvider
[<ObsoleteAttribute("The recommended alternative is to use one of the specific ValueProvider types, such as FormValueProvider.")>]
type ValueProviderDictionary = 
    class
        interface IDictionary<string, ValueProviderResult>
        interface ICollection<KeyValuePair<string, ValueProviderResult>>
        interface IEnumerable<KeyValuePair<string, ValueProviderResult>>
        interface IEnumerable
        interface IValueProvider
    end
<ObsoleteAttribute("The recommended alternative is to use one of the specific ValueProvider types, such as FormValueProvider.")>
Public Class ValueProviderDictionary
    Implements IDictionary(Of String, ValueProviderResult), ICollection(Of KeyValuePair(Of String, ValueProviderResult)),
    IEnumerable(Of KeyValuePair(Of String, ValueProviderResult)), IEnumerable,
    IValueProvider

Constructors

Name Description
System_CAPS_pubmethod ValueProviderDictionary(ControllerContext)

Initializes a new instance of the ValueProviderDictionary class.

Properties

Name Description
System_CAPS_pubproperty ControllerContext

Gets or sets the controller context.

System_CAPS_pubproperty Count

Gets the number of elements in the collection.

System_CAPS_pubproperty IsReadOnly

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

System_CAPS_pubproperty Item[String]

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

System_CAPS_pubproperty Keys

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

System_CAPS_pubproperty Values

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

Methods

Name Description
System_CAPS_pubmethod Add(KeyValuePair<String, ValueProviderResult>)

Adds the specified item to the collection of value providers.

System_CAPS_pubmethod Add(String, Object)

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

System_CAPS_pubmethod Add(String, ValueProviderResult)

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

System_CAPS_pubmethod Clear()

Removes all items from the collection of value providers.

System_CAPS_pubmethod Contains(KeyValuePair<String, ValueProviderResult>)

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

System_CAPS_pubmethod ContainsKey(String)

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

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

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

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetEnumerator()

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

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod Remove(KeyValuePair<String, ValueProviderResult>)

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

System_CAPS_pubmethod Remove(String)

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

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod TryGetValue(String, ValueProviderResult)

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

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod IEnumerable.GetEnumerator()

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

System_CAPS_pubinterfaceSystem_CAPS_privmethod IValueProvider.ContainsPrefix(String)

Determines whether the collection contains the specified prefix.

System_CAPS_pubinterfaceSystem_CAPS_privmethod IValueProvider.GetValue(String)

Returns a value object using the specified key.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Web.Mvc Namespace

Return to top