QueryStringRequestCultureProvider Class

Determines the culture information for a request via values in the query string.

Namespace
Microsoft.AspNetCore.Localization
Assemblies
  • Microsoft.AspNetCore.Localization

Syntax

public class QueryStringRequestCultureProvider : RequestCultureProvider, IRequestCultureProvider
class Microsoft.AspNetCore.Localization.QueryStringRequestCultureProvider

Methods

DetermineProviderCultureResult(Microsoft.AspNetCore.Http.HttpContext)
Return type:System.Threading.Tasks.Task<Microsoft.AspNetCore.Localization.ProviderCultureResult>
public override Task<ProviderCultureResult> DetermineProviderCultureResult(HttpContext httpContext)

Properties

Microsoft.AspNetCore.Localization.QueryStringRequestCultureProvider.QueryStringKey

The key that contains the culture name. Defaults to “culture”.

Return type:System.String
public string QueryStringKey { get; set; }
Microsoft.AspNetCore.Localization.QueryStringRequestCultureProvider.UIQueryStringKey

The key that contains the UI culture name. If not specified or no value is found, Microsoft.AspNetCore.Localization.QueryStringRequestCultureProvider.QueryStringKey will be used. Defaults to “ui-culture”.

Return type:System.String
public string UIQueryStringKey { get; set; }