NameValueCollectionValueProvider Class

 

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

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

Inheritance Hierarchy

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

Syntax

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

Constructors

Name Description
System_CAPS_pubmethod NameValueCollectionValueProvider(NameValueCollection, CultureInfo)

Initializes a new instance of the NameValueCollectionValueProvider class.

System_CAPS_pubmethod NameValueCollectionValueProvider(NameValueCollection, NameValueCollection, CultureInfo)

Initializes a new instance of the NameValueCollectionValueProvider class using the specified unvalidated collection.

System_CAPS_pubmethod NameValueCollectionValueProvider(NameValueCollection, NameValueCollection, CultureInfo, Boolean)

Initializes Name Value collection provider.

Methods

Name Description
System_CAPS_pubmethod ContainsPrefix(String)

Determines whether the collection contains the specified prefix.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetKeysFromPrefix(String)

Gets the keys using the specified prefix.

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod GetValue(String)

Returns a value object using the specified key.

System_CAPS_pubmethod GetValue(String, Boolean)

Returns a value object using the specified key and validation directive.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

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

FormValueProvider
QueryStringValueProvider
System.Web.Mvc Namespace

Return to top