Export (0) Print
Expand All

ValueProviderDictionary Class

Note: This API is now obsolete.

Represents a dictionary of value providers for the application.

System.Object
  System.Web.Mvc.ValueProviderDictionary

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

'Declaration
<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
'Usage
Dim instance As ValueProviderDictionary

The ValueProviderDictionary type exposes the following members.

  NameDescription
Public methodValueProviderDictionaryInitializes a new instance of the ValueProviderDictionary class.
Top

  NameDescription
Public propertyControllerContextGets or sets the controller context.
Public propertyCountGets the number of elements in the collection.
Public propertyIsReadOnlyGets a value that indicates whether the collection is read-only.
Public propertyItemGets or sets the ValueProviderResult object that has the specified key.
Public propertyKeysGets a collection that contains the keys of the IDictionary(Of TKey, TValue) instance.
Public propertyValuesGets a collection that contains the values in the IDictionary(Of TKey, TValue) object.
Top

  NameDescription
Public methodAdd(KeyValuePair(Of String, ValueProviderResult))Adds the specified item to the collection of value providers.
Public methodAdd(String, Object)Adds an element that has the specified key and value to the collection of value providers.
Public methodAdd(String, ValueProviderResult)Adds an element that has the specified key and value to the collection of value providers.
Public methodClearRemoves all items from the collection of value providers.
Public methodContainsDetermines whether the collection of value providers contains the specified item.
Public methodContainsKeyDetermines whether the collection of value providers contains an element that has the specified key.
Public methodCopyToCopies the elements of the collection to an array, starting at the specified index.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetEnumeratorReturns an enumerator that can be used to iterate through the collection.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemove(KeyValuePair(Of String, ValueProviderResult))Removes the first occurrence of the specified item from the collection of value providers.
Public methodRemove(String)Removes the element that has the specified key from the collection of value providers.
Public methodToString (Inherited from Object.)
Public methodTryGetValueGets the value of the element that has the specified key.
Top

  NameDescription
Explicit interface implemetationPrivate methodIEnumerable.GetEnumeratorReturns an enumerator that can be used to iterate through a collection.
Explicit interface implemetationPrivate methodIValueProvider.ContainsPrefixDetermines whether the collection contains the specified prefix.
Explicit interface implemetationPrivate methodIValueProvider.GetValueReturns a value object using the specified key.
Top

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