Partager via


CompositeValueProvider Class

Represents a value provider whose values come from a list of value providers that implements the IEnumerable interface.

Inheritance Hierarchy

System.Object
  System.Collections.ObjectModel.Collection<IValueProvider>
    System.Web.Http.ValueProviders.Providers.CompositeValueProvider

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

Syntax

'Declaration
Public Class CompositeValueProvider _
    Inherits Collection(Of IValueProvider) _
    Implements IEnumerableValueProvider, IValueProvider
'Usage
Dim instance As CompositeValueProvider
public class CompositeValueProvider : Collection<IValueProvider>, 
    IEnumerableValueProvider, IValueProvider
public ref class CompositeValueProvider : public Collection<IValueProvider^>, 
    IEnumerableValueProvider, IValueProvider
type CompositeValueProvider =  
    class
        inherit Collection<IValueProvider>
        interface IEnumerableValueProvider
        interface IValueProvider
    end
public class CompositeValueProvider extends Collection<IValueProvider> implements IEnumerableValueProvider, IValueProvider

The CompositeValueProvider type exposes the following members.

Constructors

  Name Description
Public method CompositeValueProvider() Initializes a new instance of the CompositeValueProvider class.
Public method CompositeValueProvider(IList<IValueProvider>) Initializes a new instance of the CompositeValueProvider class.

Top

Properties

  Name Description
Public property Count (Inherited from Collection<IValueProvider>.)
Public property Item (Inherited from Collection<IValueProvider>.)
Protected property Items (Inherited from Collection<IValueProvider>.)

Top

Methods

  Name Description
Public method Add (Inherited from Collection<IValueProvider>.)
Public method Clear (Inherited from Collection<IValueProvider>.)
Protected method ClearItems (Inherited from Collection<IValueProvider>.)
Public method Contains (Inherited from Collection<IValueProvider>.)
Public method ContainsPrefix Determines whether the collection contains the specified prefix.
Public method CopyTo (Inherited from Collection<IValueProvider>.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator (Inherited from Collection<IValueProvider>.)
Public method GetHashCode (Inherited from Object.)
Public method GetKeysFromPrefix Retrieves the keys from the specified prefix.
Public method GetType (Inherited from Object.)
Public method GetValue Retrieves a value object using the specified key.
Public method IndexOf (Inherited from Collection<IValueProvider>.)
Public method Insert (Inherited from Collection<IValueProvider>.)
Protected method InsertItem Inserts an element into the collection at the specified index. (Overrides Collection<T>.InsertItem(Int32, T).)
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove (Inherited from Collection<IValueProvider>.)
Public method RemoveAt (Inherited from Collection<IValueProvider>.)
Protected method RemoveItem (Inherited from Collection<IValueProvider>.)
Protected method SetItem Replaces the element at the specified index. (Overrides Collection<T>.SetItem(Int32, T).)
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IList.Add (Inherited from Collection<IValueProvider>.)
Explicit interface implemetationPrivate method IList.Contains (Inherited from Collection<IValueProvider>.)
Explicit interface implemetationPrivate method ICollection.CopyTo (Inherited from Collection<IValueProvider>.)
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator (Inherited from Collection<IValueProvider>.)
Explicit interface implemetationPrivate method IList.IndexOf (Inherited from Collection<IValueProvider>.)
Explicit interface implemetationPrivate method IList.Insert (Inherited from Collection<IValueProvider>.)
Explicit interface implemetationPrivate property IList.IsFixedSize (Inherited from Collection<IValueProvider>.)
Explicit interface implemetationPrivate property ICollection<T>.IsReadOnly (Inherited from Collection<IValueProvider>.)
Explicit interface implemetationPrivate property IList.IsReadOnly (Inherited from Collection<IValueProvider>.)
Explicit interface implemetationPrivate property ICollection.IsSynchronized (Inherited from Collection<IValueProvider>.)
Explicit interface implemetationPrivate property IList.Item (Inherited from Collection<IValueProvider>.)
Explicit interface implemetationPrivate method IList.Remove (Inherited from Collection<IValueProvider>.)
Explicit interface implemetationPrivate property ICollection.SyncRoot (Inherited from Collection<IValueProvider>.)

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