Share via


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()

返回一个可用于循环访问集合的枚举器。

适用于