ITempDataProvider Interface¶
Defines the contract for temporary-data providers that store data that is viewed on the next request.
- Namespace
Microsoft.AspNetCore.Mvc.ViewFeatures
- Assemblies
- Microsoft.AspNetCore.Mvc.ViewFeatures
Syntax¶
public interface ITempDataProvider
-
interface
Microsoft.AspNetCore.Mvc.ViewFeatures.
ITempDataProvider
Methods¶
-
LoadTempData
(Microsoft.AspNetCore.Http.HttpContext)¶ Loads the temporary data.
Arguments: context (Microsoft.AspNetCore.Http.HttpContext) – The Microsoft.AspNetCore.Http.HttpContext
.Return type: System.Collections.Generic.IDictionary<System.String> Returns: The temporary data. IDictionary<string, object> LoadTempData(HttpContext context)
-
SaveTempData
(Microsoft.AspNetCore.Http.HttpContext, System.Collections.Generic.IDictionary<System.String, System.Object>)¶ Saves the temporary data.
Arguments: - context (Microsoft.AspNetCore.Http.HttpContext) – The
Microsoft.AspNetCore.Http.HttpContext
. - values (System.Collections.Generic.IDictionary<System.String>) – The values to save.
void SaveTempData(HttpContext context, IDictionary<string, object> values)
- context (Microsoft.AspNetCore.Http.HttpContext) – The
-