ITempDataDictionaryFactory.GetTempData(HttpContext) 方法

定义

获取或创建 ITempDataDictionary 与给定 context关联的请求的实例。

public:
 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
Public Function GetTempData (context As HttpContext) As ITempDataDictionary

参数

返回

ITempDataDictionary与给定 context关联的请求的实例。

适用于