Dela via


CookieTempDataProvider Class

Definition

Provides data from cookie to the current ITempDataDictionary object.

public ref class CookieTempDataProvider : Microsoft::AspNetCore::Mvc::ViewFeatures::ITempDataProvider
public class CookieTempDataProvider : Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataProvider
type CookieTempDataProvider = class
    interface ITempDataProvider
Public Class CookieTempDataProvider
Implements ITempDataProvider
Inheritance
CookieTempDataProvider
Implements

Constructors

CookieTempDataProvider(IDataProtectionProvider, ILoggerFactory, IOptions<CookieTempDataProviderOptions>, TempDataSerializer)

Initializes a new instance of CookieTempDataProvider.

CookieTempDataProvider(IDataProtectionProvider, ILoggerFactory, IOptions<CookieTempDataProviderOptions>)
CookieTempDataProvider(IDataProtectionProvider, IOptions<CookieTempDataProviderOptions>)

Fields

CookieName

The name of the cookie.

Methods

LoadTempData(HttpContext)

Loads the temp data from the request.

SaveTempData(HttpContext, IDictionary<String,Object>)

Save the temp data to the request.

Applies to