ITempData インターフェイス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
後続の要求に必要なデータを格納するためのディクショナリを提供します。 TempData に格納されているデータは、 Keep() または Keep(String) が呼び出されるか、 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))
- 実装
-
ICollection<KeyValuePair<String,Object>> ICollection<KeyValuePair<TKey,TValue>> IDictionary<String,Object> IEnumerable<KeyValuePair<String,Object>> IEnumerable<KeyValuePair<TKey,TValue>> IEnumerable<T> IEnumerable
メソッド
| 名前 | 説明 |
|---|---|
| Get(String) |
指定したキーに関連付けられている値を取得し、削除のスケジュールを設定します。 |
| Keep() |
現在 TempData 内のすべてのキーを別の要求に対して保持します。 |
| Keep(String) |
|
| Peek(String) |
削除のスケジュールを設定せずに、指定したキーに関連付けられている値を取得します。 |