Condividi tramite


ITempData Interfaccia

Definizione

Fornisce un dizionario per l'archiviazione dei dati necessari per le richieste successive. I dati archiviati in TempData vengono rimossi automaticamente dopo la lettura, a meno che Keep() non venga chiamato o Keep(String) a cui si accede tramite Peek(String).

public interface ITempData : 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 ITempData = interface
    interface IDictionary<string, obj>
    interface ICollection<KeyValuePair<string, obj>>
    interface seq<KeyValuePair<string, obj>>
    interface IEnumerable
Public Interface ITempData
Implements ICollection(Of KeyValuePair(Of String, Object)), IDictionary(Of String, Object), IEnumerable(Of KeyValuePair(Of String, Object))
Implementazioni

Metodi

Nome Descrizione
Get(String)

Ottiene il valore associato alla chiave specificata e quindi lo pianifica per l'eliminazione.

Keep()

Rende persistenti tutte le chiavi attualmente in TempData per un'altra richiesta.

Keep(String)

Rende l'elemento persistente key per un'altra richiesta.

Peek(String)

Ottiene il valore associato alla chiave specificata senza pianificarla per l'eliminazione.

Si applica a