共用方式為


RazorPageBase.TempData 屬性

定義

public:
 property Microsoft::AspNetCore::Mvc::ViewFeatures::ITempDataDictionary ^ TempData { Microsoft::AspNetCore::Mvc::ViewFeatures::ITempDataDictionary ^ get(); };
public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary TempData { get; }
member this.TempData : Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary
Public ReadOnly Property TempData As ITempDataDictionary

屬性值

備註

如果 ViewContext 為 null,則傳回 null。

適用於