ViewDataDictionary Třída
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
A IDictionary<TKey,TValue> pro zobrazení dat.
public ref class ViewDataDictionary : System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>, System::Collections::Generic::IDictionary<System::String ^, System::Object ^>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>
public class ViewDataDictionary : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,object>>, System.Collections.Generic.IDictionary<string,object>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>>
type ViewDataDictionary = class
interface IDictionary<string, obj>
interface ICollection<KeyValuePair<string, obj>>
interface seq<KeyValuePair<string, obj>>
interface IEnumerable
type ViewDataDictionary = class
interface ICollection<KeyValuePair<string, obj>>
interface seq<KeyValuePair<string, obj>>
interface IEnumerable
interface IDictionary<string, obj>
Public Class ViewDataDictionary
Implements ICollection(Of KeyValuePair(Of String, Object)), IDictionary(Of String, Object), IEnumerable(Of KeyValuePair(Of String, Object))
- Dědičnost
-
ViewDataDictionary
- Odvozené
- Implementuje
-
ICollection<KeyValuePair<String,Object>> ICollection<KeyValuePair<TKey,TValue>> IDictionary<String,Object> IEnumerable<KeyValuePair<String,Object>> IEnumerable<KeyValuePair<TKey,TValue>> IEnumerable<T> IEnumerable
Konstruktory
| ViewDataDictionary(IModelMetadataProvider, ModelStateDictionary) |
Inicializuje novou instanci ViewDataDictionary třídy . |
| ViewDataDictionary(IModelMetadataProvider, ModelStateDictionary, Type) |
Inicializuje novou instanci ViewDataDictionary třídy . |
| ViewDataDictionary(IModelMetadataProvider, Type) |
Inicializuje novou instanci ViewDataDictionary třídy . |
| ViewDataDictionary(ViewDataDictionary) |
Inicializuje novou instanci třídy ViewDataDictionary zcela na základě existující instance. |
| ViewDataDictionary(ViewDataDictionary, Object, Type) |
Inicializuje novou instanci třídy ViewDataDictionary založenou částečně na existující instanci. Tento konstruktor je opatrní, aby se zabránilo výjimce SetModel(Object) může vyvolat, když |
| ViewDataDictionary(ViewDataDictionary, Type) |
Inicializuje novou instanci třídy ViewDataDictionary založenou částečně na existující instanci. |
Vlastnosti
| Count | Gets the number of elements contained in the ICollection<T>. |
| IsReadOnly | Gets a value indicating whether the ICollection<T> is read-only. |
| Item[String] | Gets or sets the element with the specified key. |
| Keys | Gets an ICollection<T> containing the keys of the IDictionary<TKey,TValue>. |
| Model |
Získá nebo nastaví aktuální model. |
| ModelExplorer |
Získá nebo nastaví ModelExplorer pro Model . |
| ModelMetadata |
Získá ModelMetadata pro výraz , Model (pokud není |
| ModelState |
Získá ModelStateDictionary . |
| TemplateInfo |
Získá TemplateInfo . |
| Values | Gets an ICollection<T> containing the values in the IDictionary<TKey,TValue>. |
Metody
| Add(KeyValuePair<String,Object>) | Adds an item to the ICollection<T>. |
| Add(String, Object) | Adds an element with the provided key and value to the IDictionary<TKey,TValue>. |
| Clear() | Removes all items from the ICollection<T>. |
| Contains(KeyValuePair<String,Object>) | Determines whether the ICollection<T> contains a specific value. |
| ContainsKey(String) | Determines whether the IDictionary<TKey,TValue> contains an element with the specified key. |
| CopyTo(KeyValuePair<String,Object>[], Int32) | Copies the elements of the ICollection<T> to an Array, starting at a particular Array index. |
| Eval(String) |
Získá hodnotu s názvem |
| Eval(String, String) |
Získá hodnotu s názvem |
| FormatValue(Object, String) |
Formátuje danou |
| GetViewDataInfo(String) |
Získá ViewDataInfo pro s názvem v tomto |
| Remove(KeyValuePair<String,Object>) | Removes the first occurrence of a specific object from the ICollection<T>. |
| Remove(String) | Removes the element with the specified key from the IDictionary<TKey,TValue>. |
| SetModel(Object) |
Nastavte ModelExplorer tak, Model aby se Model zajistilo a odráželo nové |
| TryGetValue(String, Object) | |
Explicitní implementace rozhraní
| IEnumerable.GetEnumerator() | Returns an enumerator that iterates through a collection. |
| IEnumerable<KeyValuePair<String,Object>>.GetEnumerator() | Returns an enumerator that iterates through the collection. |