TempDataDictionary Třída

Definice

Představuje sadu dat, která se uchovávají pouze z jednoho požadavku na další.

public ref class TempDataDictionary : Microsoft::AspNetCore::Mvc::ViewFeatures::ITempDataDictionary, 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 TempDataDictionary : Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary, 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 TempDataDictionary = class
    interface ITempDataDictionary
    interface IDictionary<string, obj>
    interface ICollection<KeyValuePair<string, obj>>
    interface seq<KeyValuePair<string, obj>>
    interface IEnumerable
type TempDataDictionary = class
    interface ITempDataDictionary
    interface ICollection<KeyValuePair<string, obj>>
    interface seq<KeyValuePair<string, obj>>
    interface IEnumerable
    interface IDictionary<string, obj>
Public Class TempDataDictionary
Implements ICollection(Of KeyValuePair(Of String, Object)), IDictionary(Of String, Object), IEnumerable(Of KeyValuePair(Of String, Object)), ITempDataDictionary
Dědičnost
TempDataDictionary
Implementuje

Konstruktory

TempDataDictionary(HttpContext, ITempDataProvider)

Inicializuje novou instanci TempDataDictionary třídy.

Vlastnosti

Count

Gets the number of elements contained in the ICollection<T>.

Item[String]

Gets or sets the element with the specified key.

Keys

Gets an ICollection<T> containing the keys of the IDictionary<TKey,TValue>.

Values

Gets an ICollection<T> containing the values in the IDictionary<TKey,TValue>.

Metody

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>.

ContainsKey(String)

Determines whether the IDictionary<TKey,TValue> contains an element with the specified key.

ContainsValue(Object) System.Object.ContainsValue(System.Object)
GetEnumerator()

Returns an enumerator that iterates through the collection.

Keep()

Označí všechny klíče ve slovníku pro uchovávání informací.

Keep(String)

Označí zadaný klíč ve slovníku pro uchování.

Load()

Načte slovník pomocí registrovaného ITempDataProvidersouboru .

Peek(String)

Vrátí objekt obsahující prvek přidružený k zadanému klíči bez označení klíče pro odstranění.

Remove(String)

Removes the element with the specified key from the IDictionary<TKey,TValue>.

Save()

Uloží slovník pomocí registrovaného ITempDataProvidersouboru .

TryGetValue(String, Object) System.Object.TryGetValue(System.String,System.Object@)

Explicitní implementace rozhraní

ICollection<KeyValuePair<String,Object>>.Add(KeyValuePair<String,Object>)
ICollection<KeyValuePair<String,Object>>.Contains(KeyValuePair<String,Object>)
ICollection<KeyValuePair<String,Object>>.CopyTo(KeyValuePair<String,Object>[], Int32)
ICollection<KeyValuePair<String,Object>>.IsReadOnly

Gets a value indicating whether the ICollection<T> is read-only.

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

Platí pro