ModelBinderDictionary 類別

定義

表示包含應用程式之所有模型繫結器 (依繫結器型別列出) 的類別。

public class ModelBinderDictionary : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Type,System.Web.Mvc.IModelBinder>>, System.Collections.Generic.IDictionary<Type,System.Web.Mvc.IModelBinder>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Type,System.Web.Mvc.IModelBinder>>
type ModelBinderDictionary = class
    interface IDictionary<Type, IModelBinder>
    interface ICollection<KeyValuePair<Type, IModelBinder>>
    interface seq<KeyValuePair<Type, IModelBinder>>
    interface IEnumerable
Public Class ModelBinderDictionary
Implements ICollection(Of KeyValuePair(Of Type, IModelBinder)), IDictionary(Of Type, IModelBinder), IEnumerable(Of KeyValuePair(Of Type, IModelBinder))
繼承
ModelBinderDictionary
實作

建構函式

ModelBinderDictionary()

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

屬性

Count

取得模型繫結器字典中的項目數目。

DefaultBinder

取得或設定預設模型繫結器。

IsReadOnly

取得值,這個值表示模型繫結器字典是否為唯讀。

Item[Type]

取得或設定實作 IModelBinder 介面之物件中指定的索引鍵。

Keys

取得包含模型繫結器字典中的索引鍵之集合。

Values

取得包含模型繫結器字典中的值之集合。

方法

Add(KeyValuePair<Type,IModelBinder>)

將指定的項目加入至模型繫結器字典。

Add(Type, IModelBinder)

使用指定的索引鍵,將指定的項目加入至模型繫結器字典。

Clear()

從模型繫結器字典移除所有項目。

Contains(KeyValuePair<Type,IModelBinder>)

判斷模型繫結器字典是否包含指定的值。

ContainsKey(Type)

判斷模型繫結器字典是否包含具有指定之索引鍵的項目。

CopyTo(KeyValuePair<Type,IModelBinder>[], Int32)

從指定的索引開始,將模型繫結器字典的項目複製到陣列。

GetBinder(Type)

擷取指定型別的模型繫結器。

GetBinder(Type, Boolean)

擷取指定之型別的模型繫結器或擷取預設的模型繫結器。

GetEnumerator()

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

Remove(KeyValuePair<Type,IModelBinder>)

從模型繫結器字典中移除第一次出現的指定項目。

Remove(Type)

從模型繫結器字典移除具有指定之索引鍵的項目。

TryGetValue(Type, IModelBinder)

取得與指定之索引鍵相關聯的值。

明確介面實作

IEnumerable.GetEnumerator()

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

適用於