TempDataDictionary Clase

Definición

Representa un conjunto de datos que solo persiste de una solicitud a la siguiente.

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
Herencia
TempDataDictionary
Implementaciones

Constructores

TempDataDictionary(HttpContext, ITempDataProvider)

Inicializa una nueva instancia de la clase TempDataDictionary.

Propiedades

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

Métodos

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()

Marca todas las claves en el diccionario para la retención.

Keep(String)

Marca la clave especificada en el diccionario para la retención.

Load()

Carga el diccionario mediante el objeto registrado ITempDataProvider.

Peek(String)

Devuelve un objeto que contiene el elemento que está asociado a la clave especificada, sin marcar la clave para la eliminación.

Remove(String)

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

Save()

Guarda el diccionario mediante el objeto registrado ITempDataProvider.

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

Implementaciones de interfaz explícitas

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()

Se aplica a