AcceptLanguageHeaderRequestCultureProvider Class

Definition

Determines the culture information for a request via the value of the Accept-Language header.

C#
public class AcceptLanguageHeaderRequestCultureProvider : Microsoft.AspNetCore.Localization.RequestCultureProvider
Inheritance
AcceptLanguageHeaderRequestCultureProvider

Constructors

Properties

MaximumAcceptLanguageHeaderValuesToTry

The maximum number of values in the Accept-Language header to attempt to create a CultureInfo from for the current request. Defaults to 3.

Options

The current options for the RequestLocalizationMiddleware.

(Inherited from RequestCultureProvider)

Methods

DetermineProviderCultureResult(HttpContext) System.Object.DetermineProviderCultureResult(Microsoft.AspNetCore.Http.HttpContext)

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0