RouteDataRequestCultureProvider Class

Definition

Determines the culture information for a request via values in the route data.

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

Constructors

Properties

Options

The current options for the RequestLocalizationMiddleware.

(Inherited from RequestCultureProvider)
RouteDataStringKey

The key that contains the culture name. Defaults to "culture".

UIRouteDataStringKey

The key that contains the UI culture name. If not specified or no value is found, RouteDataStringKey will be used. Defaults to "ui-culture".

Methods

DetermineProviderCultureResult(HttpContext)

Implements the provider to determine the culture of the given request.

Applies to

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