Share via


RouteDataRequestCultureProvider Class

Definition

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

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

Constructors

RouteDataRequestCultureProvider()

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