Share via


NameValuePairsValueProvider Class

A value provider for name/value pairs.

Inheritance Hierarchy

System.Object
  System.Web.Http.ValueProviders.Providers.NameValuePairsValueProvider
    System.Web.Http.ValueProviders.Providers.QueryStringValueProvider
    System.Web.Http.ValueProviders.Providers.RouteDataValueProvider

Namespace:  System.Web.Http.ValueProviders.Providers
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

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

The NameValuePairsValueProvider type exposes the following members.

Constructors

  Name Description
Public method NameValuePairsValueProvider(IEnumerable<KeyValuePair<String, String>>, CultureInfo) Initializes a new instance of the NameValuePairsValueProvider class.
Public method NameValuePairsValueProvider(Func<IEnumerable<KeyValuePair<String, String>>>, CultureInfo) Initializes a new instance of the NameValuePairsValueProvider class, using a function delegate to provide the name/value pairs.

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 from a prefix.
Public method GetType (Inherited from Object.)
Public method GetValue Retrieves a value object using the specified key.
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.Http.ValueProviders.Providers Namespace