CookieRequestCultureProvider Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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) | System.Object.DetermineProviderCultureResult(Microsoft.AspNetCore.Http.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 |