CookieRequestCultureProvider Class

Definition

Determines the culture information for a request via the value of a cookie.

public ref class CookieRequestCultureProvider : Microsoft::AspNetCore::Localization::RequestCultureProvider
public class CookieRequestCultureProvider : Microsoft.AspNetCore.Localization.RequestCultureProvider
type CookieRequestCultureProvider = class
    inherit RequestCultureProvider
Public Class CookieRequestCultureProvider
Inherits RequestCultureProvider
Inheritance
CookieRequestCultureProvider

Constructors

CookieRequestCultureProvider()

Fields

DefaultCookieName

Represent the default cookie name used to track the user's preferred culture information, which is ".AspNetCore.Culture".

Properties

CookieName

The name of the cookie that contains the user's preferred culture information. Defaults to DefaultCookieName.

Options

The current options for the RequestLocalizationMiddleware.

(Inherited from RequestCultureProvider)

Methods

DetermineProviderCultureResult(HttpContext)
MakeCookieValue(RequestCulture)

Creates a string representation of a RequestCulture for placement in a cookie.

ParseCookieValue(String)

Parses a RequestCulture from the specified cookie value. Returns null if parsing fails.

Applies to