次の方法で共有


ITempData インターフェイス

定義

後続の要求に必要なデータを格納するためのディクショナリを提供します。 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))
実装

メソッド

名前 説明
Get(String)

指定したキーに関連付けられている値を取得し、削除のスケジュールを設定します。

Keep()

現在 TempData 内のすべてのキーを別の要求に対して保持します。

Keep(String)

keyを持つ要素を別の要求に対して保持します。

Peek(String)

削除のスケジュールを設定せずに、指定したキーに関連付けられている値を取得します。

適用対象