ValueProviderCollection 类

定义

表示应用程序的值提供程序对象的集合。

public class ValueProviderCollection : System.Collections.ObjectModel.Collection<System.Web.Mvc.IValueProvider>, System.Web.Mvc.IEnumerableValueProvider, System.Web.Mvc.IUnvalidatedValueProvider
type ValueProviderCollection = class
    inherit Collection<IValueProvider>
    interface IValueProvider
    interface IUnvalidatedValueProvider
    interface IEnumerableValueProvider
Public Class ValueProviderCollection
Inherits Collection(Of IValueProvider)
Implements IEnumerableValueProvider, IUnvalidatedValueProvider
继承
ValueProviderCollection
实现

构造函数

ValueProviderCollection()

初始化 ValueProviderCollection 类的新实例。

ValueProviderCollection(IList<IValueProvider>)

初始化 类的新实例 ValueProviderCollection 并注册指定的值提供程序。

方法

ContainsPrefix(String)

确定集合是否包含指定的前缀。

GetKeysFromPrefix(String)

获取使用指定前缀的键。

GetValue(String)

使用指定键返回值对象。

GetValue(String, Boolean)

使用指定键和跳过验证参数返回值对象。

InsertItem(Int32, IValueProvider)

将指定的值提供程序对象插入集合中的指定索引位置。

SetItem(Int32, IValueProvider)

将指定索引位置处的值提供程序替换为新的值提供程序。

适用于