ViewDataDictionary Klasa

Definicja

Element do wyświetlania IDictionary<TKey,TValue> danych.

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))
Dziedziczenie
ViewDataDictionary
Pochodne
Implementuje

Konstruktory

ViewDataDictionary(IModelMetadataProvider, ModelStateDictionary)

Inicjuje nowe wystąpienie klasy ViewDataDictionary.

ViewDataDictionary(IModelMetadataProvider, ModelStateDictionary, Type)

Inicjuje nowe wystąpienie klasy ViewDataDictionary.

ViewDataDictionary(IModelMetadataProvider, Type)

Inicjuje nowe wystąpienie klasy ViewDataDictionary.

ViewDataDictionary(ViewDataDictionary)

Inicjuje ViewDataDictionary nowe wystąpienie klasy w całości na podstawie istniejącego wystąpienia.

ViewDataDictionary(ViewDataDictionary, Object, Type)

Inicjuje ViewDataDictionary nowe wystąpienie klasy w części na istniejącym wystąpieniu. Ten konstruktor jest ostrożny, aby uniknąć wyjątków, które mogą zgłaszać, SetModel(Object) gdy model jest .null

ViewDataDictionary(ViewDataDictionary, Type)

Inicjuje ViewDataDictionary nowe wystąpienie klasy w części na istniejącym wystąpieniu.

Właściwości

Count

Element do wyświetlania IDictionary<TKey,TValue> danych.

IsReadOnly

Element do wyświetlania IDictionary<TKey,TValue> danych.

Item[String]

Element do wyświetlania IDictionary<TKey,TValue> danych.

Keys

Element do wyświetlania IDictionary<TKey,TValue> danych.

Model

Pobiera lub ustawia bieżący model.

ModelExplorer

Pobiera lub ustawia wartość ModelExplorer dla .Model

ModelMetadata

Pobiera wartość ModelMetadata dla wyrażenia ( Model jeśli nie-null) lub zadeklarowaną Typewartość .

ModelState

Pobiera klasę ModelStateDictionary.

TemplateInfo

Pobiera klasę TemplateInfo.

Values

Element do wyświetlania IDictionary<TKey,TValue> danych.

Metody

Add(KeyValuePair<String,Object>)

Element do wyświetlania IDictionary<TKey,TValue> danych.

Add(String, Object)

Element do wyświetlania IDictionary<TKey,TValue> danych.

Clear()

Element do wyświetlania IDictionary<TKey,TValue> danych.

Contains(KeyValuePair<String,Object>)

Element do wyświetlania IDictionary<TKey,TValue> danych.

ContainsKey(String)

Element do wyświetlania IDictionary<TKey,TValue> danych.

CopyTo(KeyValuePair<String,Object>[], Int32)

Element do wyświetlania IDictionary<TKey,TValue> danych.

Eval(String)

Pobiera wartość o nazwie expression w tym ViewDataDictionaryobiekcie .

Eval(String, String)

Pobiera wartość o nazwie expression w tym ViewDataDictionaryobiekcie sformatowaną przy użyciu podanego formatelementu .

FormatValue(Object, String)

Formatuje dane value przy użyciu podanego formatelementu .

GetViewDataInfo(String)

Pobiera ViewDataInfo ciąg dla nazwy expression w tym ViewDataDictionaryobiekcie .

Remove(KeyValuePair<String,Object>)

Element do wyświetlania IDictionary<TKey,TValue> danych.

Remove(String)

Element do wyświetlania IDictionary<TKey,TValue> danych.

SetModel(Object)

Ustaw wartość ModelExplorer , aby zapewnić Model i Model odzwierciedlić nowy valueelement .

TryGetValue(String, Object)

Element do wyświetlania IDictionary<TKey,TValue> danych.

Jawne implementacje interfejsu

IEnumerable.GetEnumerator()

Element do wyświetlania IDictionary<TKey,TValue> danych.

IEnumerable<KeyValuePair<String,Object>>.GetEnumerator()

Element do wyświetlania IDictionary<TKey,TValue> danych.

Dotyczy