NameValueCollectionValueProvider Class

Represents the base class for value providers whose values come from a NameValueCollection object.

Inheritance Hierarchy

System.Object
  System.Web.Mvc.NameValueCollectionValueProvider
    System.Web.Mvc.FormValueProvider
    System.Web.Mvc.QueryStringValueProvider

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

Syntax

'Declaration
Public Class NameValueCollectionValueProvider _
    Implements IUnvalidatedValueProvider, IEnumerableValueProvider, IValueProvider
'Usage
Dim instance As NameValueCollectionValueProvider
public class NameValueCollectionValueProvider : IUnvalidatedValueProvider, 
    IEnumerableValueProvider, IValueProvider
public ref class NameValueCollectionValueProvider : IUnvalidatedValueProvider, 
    IEnumerableValueProvider, IValueProvider
type NameValueCollectionValueProvider =  
    class 
        interface IUnvalidatedValueProvider 
        interface IEnumerableValueProvider 
        interface IValueProvider 
    end
public class NameValueCollectionValueProvider implements IUnvalidatedValueProvider, IEnumerableValueProvider, IValueProvider

The NameValueCollectionValueProvider type exposes the following members.

Constructors

  Name Description
Public method NameValueCollectionValueProvider(NameValueCollection, CultureInfo) Initializes a new instance of the NameValueCollectionValueProvider class.
Public method NameValueCollectionValueProvider(NameValueCollection, NameValueCollection, CultureInfo) Initializes a new instance of the NameValueCollectionValueProvider class using the specified unvalidated collection.

Top

Methods

  Name Description
Public method ContainsPrefix Determines whether the collection contains the specified prefix.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetKeysFromPrefix Gets the keys using the specified prefix.
Public method GetType (Inherited from Object.)
Public method GetValue(String) Returns a value object using the specified key.
Public method GetValue(String, Boolean) Returns a value object using the specified key and validation directive.
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

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

Reference

System.Web.Mvc Namespace

FormValueProvider

QueryStringValueProvider