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

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

实现

适用于