DictionaryModelBinder<TKey,TValue> 类  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将浏览器请求映射到字典数据对象。
generic <typename TKey, typename TValue>
public ref class DictionaryModelBinder : System::Web::ModelBinding::CollectionModelBinder<System::Collections::Generic::KeyValuePair<TKey, TValue>>public class DictionaryModelBinder<TKey,TValue> : System.Web.ModelBinding.CollectionModelBinder<System.Collections.Generic.KeyValuePair<TKey,TValue>>type DictionaryModelBinder<'Key, 'Value> = class
    inherit CollectionModelBinder<KeyValuePair<'Key, 'Value>>Public Class DictionaryModelBinder(Of TKey, TValue)
Inherits CollectionModelBinder(Of KeyValuePair(Of TKey, TValue))类型参数
- TKey
键的类型。
- TValue
值的类型。
- 继承
构造函数
| DictionaryModelBinder<TKey,TValue>() | 初始化 DictionaryModelBinder<TKey,TValue> 类的新实例。 | 
方法
| BindModel(ModelBindingExecutionContext, ModelBindingContext) | 使用指定的执行上下文和绑定上下文来绑定模型。(继承自 CollectionModelBinder<TElement>) | 
| CreateOrReplaceCollection(ModelBindingExecutionContext, ModelBindingContext, IList<KeyValuePair<TKey,TValue>>) | 将集合转换为字典。 | 
| CreateOrReplaceCollection(ModelBindingExecutionContext, ModelBindingContext, IList<TElement>) | 为派生类提供了一种操作集合的类(在从绑定器返回它之前)。(继承自 CollectionModelBinder<TElement>) | 
| Equals(Object) | 确定指定对象是否等于当前对象。(继承自 Object) | 
| GetHashCode() | 作为默认哈希函数。(继承自 Object) | 
| GetType() | 获取当前实例的 Type。(继承自 Object) | 
| MemberwiseClone() | 创建当前 Object 的浅表副本。(继承自 Object) | 
| ToString() | 返回表示当前对象的字符串。(继承自 Object) |