TempDataAttribute 클래스

정의

TempDataAttribute 데코레이트된 속성의 값은 에 저장되고 에서 ITempDataDictionary로드됩니다. TempDataAttribute 는 컨트롤러, Razor 페이지 및 Razor 페이지 모델의 속성에서 지원됩니다.

public ref class TempDataAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class TempDataAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type TempDataAttribute = class
    inherit Attribute
Public NotInheritable Class TempDataAttribute
Inherits Attribute
상속
TempDataAttribute
특성

생성자

TempDataAttribute()

TempDataAttribute 데코레이트된 속성의 값은 에 저장되고 에서 ITempDataDictionary로드됩니다. TempDataAttribute 는 컨트롤러, Razor 페이지 및 Razor 페이지 모델의 속성에서 지원됩니다.

속성

Key

에서 값 ITempDataDictionary에서 속성을 가져오거나 추가하는 데 사용되는 키를 가져오거나 설정합니다. 지정되지 않은 경우 키는 속성 이름에서 파생됩니다.

적용 대상