共用方式為


ViewViewComponentResult.TempData 屬性

定義

取得或設定 ITempDataDictionary 執行個體。

public:
 property Microsoft::AspNetCore::Mvc::ViewFeatures::ITempDataDictionary ^ TempData { Microsoft::AspNetCore::Mvc::ViewFeatures::ITempDataDictionary ^ get(); void set(Microsoft::AspNetCore::Mvc::ViewFeatures::ITempDataDictionary ^ value); };
public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary TempData { get; set; }
member this.TempData : Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary with get, set
Public Property TempData As ITempDataDictionary

屬性值

適用於