共用方式為


TempDataDictionary(HttpContext, ITempDataProvider) 建構函式

定義

初始化 TempDataDictionary 類別的新執行個體。

public:
 TempDataDictionary(Microsoft::AspNetCore::Http::HttpContext ^ context, Microsoft::AspNetCore::Mvc::ViewFeatures::ITempDataProvider ^ provider);
public TempDataDictionary (Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataProvider provider);
new Microsoft.AspNetCore.Mvc.ViewFeatures.TempDataDictionary : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataProvider -> Microsoft.AspNetCore.Mvc.ViewFeatures.TempDataDictionary
Public Sub New (context As HttpContext, provider As ITempDataProvider)

參數

provider
ITempDataProvider

ITempDataProvider用來載入和儲存資料的 。

適用於