ViewDataDictionary Sınıf
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Verileri IDictionary<TKey,TValue> görüntülemek için bir.
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))
- Devralma
-
ViewDataDictionary
- Türetilmiş
- Uygulamalar
-
ICollection<KeyValuePair<String,Object>> ICollection<KeyValuePair<TKey,TValue>> IDictionary<String,Object> IEnumerable<KeyValuePair<String,Object>> IEnumerable<KeyValuePair<TKey,TValue>> IEnumerable<T> IEnumerable
Oluşturucular
| ViewDataDictionary(IModelMetadataProvider, ModelStateDictionary) |
ViewDataDictionary sınıfının yeni bir örneğini başlatır. |
| ViewDataDictionary(IModelMetadataProvider, ModelStateDictionary, Type) |
ViewDataDictionary sınıfının yeni bir örneğini başlatır. |
| ViewDataDictionary(IModelMetadataProvider, Type) |
ViewDataDictionary sınıfının yeni bir örneğini başlatır. |
| ViewDataDictionary(ViewDataDictionary) |
Tamamen mevcut bir örneği temel ViewDataDictionary alarak sınıfının yeni bir örneğini başlatıyor. |
| ViewDataDictionary(ViewDataDictionary, Object, Type) |
Kısmen var olan bir örneği ViewDataDictionary temel alarak sınıfının yeni bir örneğini başlatıyor. Bu oluşturucu null olduğunda özel durumların SetModel(Object) atılmasından kaçınmak |
| ViewDataDictionary(ViewDataDictionary, Type) |
Kısmen var olan bir örneği ViewDataDictionary temel alarak sınıfının yeni bir örneğini başlatıyor. |
Özellikler
| 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 |
Geçerli modeli alır veya ayarlar. |
| ModelExplorer |
için alır ModelExplorer veya Model ayarlar. |
| ModelMetadata |
Bir ModelMetadata ifade, (null Model olmayan ise) veya bildirilen değerini |
| ModelState |
ModelStateDictionary öğesini alır. |
| TemplateInfo |
TemplateInfo öğesini alır. |
| Values | Gets an ICollection<T> containing the values in the IDictionary<TKey,TValue>. |
Yöntemler
| 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) |
Bu içinde adlı |
| Eval(String, String) |
Verilen kullanılarak |
| FormatValue(Object, String) |
Verilen kullanarak |
| GetViewDataInfo(String) |
bu ViewDataInfo içinde adlandırılmış için |
| 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) |
Yeni ModelExplorer 'nin olduğundan Model emin olmak ve Model yansıtmak için |
| TryGetValue(String, Object) | |
Belirtik Arabirim Kullanımları
| IEnumerable.GetEnumerator() | Returns an enumerator that iterates through a collection. |
| IEnumerable<KeyValuePair<String,Object>>.GetEnumerator() | Returns an enumerator that iterates through the collection. |