共用方式為


ViewResult.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

屬性值

適用於