ITempData 인터페이스

정의

후속 요청에 필요한 데이터를 저장하기 위한 사전을 제공합니다. TempData에 저장된 데이터는 읽거나 Keep(String) 호출하지 않거나 을 통해 Peek(String)액세스하는 경우를 제외 Keep() 하면 자동으로 제거됩니다.

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))
구현

메서드

Name Description
Get(String)

지정된 키와 연결된 값을 가져오고 삭제되도록 예약합니다.

Keep()

현재 TempData에 있는 모든 키를 다른 요청에 대해 유지합니다.

Keep(String)

다른 요청에 대한 지속이 있는 key 요소를 만듭니다.

Peek(String)

삭제를 예약하지 않고 지정된 키와 연결된 값을 가져옵니다.

적용 대상