共用方式為


TempDataDictionaryFactory.GetTempData(HttpContext) 方法

定義

取得或建立 ITempDataDictionary 與指定 context 相關聯之要求的實例。

public:
 virtual Microsoft::AspNetCore::Mvc::ViewFeatures::ITempDataDictionary ^ GetTempData(Microsoft::AspNetCore::Http::HttpContext ^ context);
public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary GetTempData (Microsoft.AspNetCore.Http.HttpContext context);
abstract member GetTempData : Microsoft.AspNetCore.Http.HttpContext -> Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary
override this.GetTempData : Microsoft.AspNetCore.Http.HttpContext -> Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary
Public Function GetTempData (context As HttpContext) As ITempDataDictionary

參數

傳回

ITempDataDictionary 指定 context 相關聯的要求實例。

實作

適用於