ValueProviderDictionary 類別

定義

警告

The recommended alternative is to use one of the specific ValueProvider types, such as FormValueProvider.

注意:此 API 現在已過時。表示應用程式的值提供者字典。

[System.Obsolete("The recommended alternative is to use one of the specific ValueProvider types, such as FormValueProvider.")]
public class ValueProviderDictionary : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,System.Web.Mvc.ValueProviderResult>>, System.Collections.Generic.IDictionary<string,System.Web.Mvc.ValueProviderResult>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,System.Web.Mvc.ValueProviderResult>>, System.Web.Mvc.IValueProvider
type ValueProviderDictionary = class
    interface IDictionary<string, ValueProviderResult>
    interface ICollection<KeyValuePair<string, ValueProviderResult>>
    interface seq<KeyValuePair<string, ValueProviderResult>>
    interface IEnumerable
    interface IValueProvider
Public Class ValueProviderDictionary
Implements ICollection(Of KeyValuePair(Of String, ValueProviderResult)), IDictionary(Of String, ValueProviderResult), IEnumerable(Of KeyValuePair(Of String, ValueProviderResult)), IValueProvider
繼承
ValueProviderDictionary
屬性
實作

建構函式

ValueProviderDictionary(ControllerContext)
已淘汰.

初始化 ValueProviderDictionary 類別的新執行個體。

屬性

ControllerContext
已淘汰.

取得或設定控制器內容。

Count
已淘汰.

取得集合中的項目數。

IsReadOnly
已淘汰.

取得值,這個值表示集合是否為唯讀。

Item[String]
已淘汰.

取得或設定 ValueProviderResult 具有指定索引鍵的 物件。

Keys
已淘汰.

取得集合,其中包含 實例的 IDictionary<TKey,TValue> 索引鍵。

Values
已淘汰.

取得集合,其中包含 物件中的 IDictionary<TKey,TValue> 值。

方法

Add(KeyValuePair<String,ValueProviderResult>)
已淘汰.

將指定的項目加入至值提供者的集合。

Add(String, Object)
已淘汰.

將具有指定索引鍵和值的項目加入至值提供者的集合。

Add(String, ValueProviderResult)
已淘汰.

將具有指定索引鍵和值的項目加入至值提供者的集合。

Clear()
已淘汰.

從值提供者的集合移除所有項目。

Contains(KeyValuePair<String,ValueProviderResult>)
已淘汰.

判斷值提供者的集合是否包含指定的項目。

ContainsKey(String)
已淘汰.

判斷值提供者的集合是否包含具有指定索引鍵的項目。

CopyTo(KeyValuePair<String,ValueProviderResult>[], Int32)
已淘汰.

從指定的索引位置開始,將集合的元素複製到陣列中。

GetEnumerator()
已淘汰.

傳回列舉值,可用來逐一查看集合。

Remove(KeyValuePair<String,ValueProviderResult>)
已淘汰.

從值提供者的集合移除指定之項目的第一個符合項目。

Remove(String)
已淘汰.

從值提供者的集合中移除具有指定索引鍵的項目。

TryGetValue(String, ValueProviderResult)
已淘汰.

取得具有指定索引鍵之項目的值。

明確介面實作

IEnumerable.GetEnumerator()
已淘汰.

傳回可用於逐一查看集合的列舉程式。

IValueProvider.ContainsPrefix(String)
已淘汰.

判斷集合是否包含指定的前置詞。

IValueProvider.GetValue(String)
已淘汰.

使用指定的索引鍵傳回值物件。

適用於