AcceptLanguageHeaderRequestCultureProvider Class

Definition

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

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

Constructors

AcceptLanguageHeaderRequestCultureProvider()

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)

Applies to