Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Microsoft.​AspNetCore.​Localization.​AcceptLanguageHeaderRequestCultureProvider
Assembly: Microsoft.AspNetCore.Localization
Inheritance: object → RequestCultureProvider → AcceptLanguageHeaderRequestCultureProvider
Implemented Interfaces
- IRequestCultureProvider Implemented by: RequestCultureProvider
Determines the culture information for a request via the value of the Accept-Language header.
Properties
public
int
MaximumAcceptLanguageHeaderValuesToTry
The maximum number of values in the Accept-Language header to attempt to create a <see cref="T:System.Globalization.CultureInfo" />
from for the current request.
Defaults to <c>3</c> .
Options
The current options for the <see cref="T:Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware" /> .
Methods
public
System.​Threading.​Tasks.​Task<​ProviderCultureResult>
DetermineProviderCultureResult​(Http.​HttpContext httpContext)
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object