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
值的類型。
- 繼承
建構函式
| 名稱 | Description |
|---|---|
| DictionaryModelBinder<TKey,TValue>() |
初始化 DictionaryModelBinder<TKey,TValue> 類別的新執行個體。 |
方法
| 名稱 | Description |
|---|---|
| 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) |