ApplicationBuilderExtensions.UseRequestLocalization ApplicationBuilderExtensions.UseRequestLocalization ApplicationBuilderExtensions.UseRequestLocalization Method

Definition

Overloads

UseRequestLocalization(IApplicationBuilder) UseRequestLocalization(IApplicationBuilder) UseRequestLocalization(IApplicationBuilder)

Adds the RequestLocalizationMiddleware to automatically set culture information for requests based on information provided by the client.

UseRequestLocalization(IApplicationBuilder, RequestLocalizationOptions) UseRequestLocalization(IApplicationBuilder, RequestLocalizationOptions) UseRequestLocalization(IApplicationBuilder, RequestLocalizationOptions)

Adds the RequestLocalizationMiddleware to automatically set culture information for requests based on information provided by the client.

UseRequestLocalization(IApplicationBuilder, Action<RequestLocalizationOptions>) UseRequestLocalization(IApplicationBuilder, Action<RequestLocalizationOptions>) UseRequestLocalization(IApplicationBuilder, Action<RequestLocalizationOptions>)

Adds the RequestLocalizationMiddleware to automatically set culture information for requests based on information provided by the client.

UseRequestLocalization(IApplicationBuilder, String[]) UseRequestLocalization(IApplicationBuilder, String[]) UseRequestLocalization(IApplicationBuilder, String[])

Adds the RequestLocalizationMiddleware to automatically set culture information for requests based on information provided by the client.

UseRequestLocalization(IApplicationBuilder) UseRequestLocalization(IApplicationBuilder) UseRequestLocalization(IApplicationBuilder)

Adds the RequestLocalizationMiddleware to automatically set culture information for requests based on information provided by the client.

public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseRequestLocalization (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseRequestLocalization : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseRequestLocalization (app As IApplicationBuilder) As IApplicationBuilder

Parameters

Returns

UseRequestLocalization(IApplicationBuilder, RequestLocalizationOptions) UseRequestLocalization(IApplicationBuilder, RequestLocalizationOptions) UseRequestLocalization(IApplicationBuilder, RequestLocalizationOptions)

Adds the RequestLocalizationMiddleware to automatically set culture information for requests based on information provided by the client.

public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseRequestLocalization (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.RequestLocalizationOptions options);
static member UseRequestLocalization : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.RequestLocalizationOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseRequestLocalization (app As IApplicationBuilder, options As RequestLocalizationOptions) As IApplicationBuilder

Parameters

Returns

UseRequestLocalization(IApplicationBuilder, Action<RequestLocalizationOptions>) UseRequestLocalization(IApplicationBuilder, Action<RequestLocalizationOptions>) UseRequestLocalization(IApplicationBuilder, Action<RequestLocalizationOptions>)

Adds the RequestLocalizationMiddleware to automatically set culture information for requests based on information provided by the client.

public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseRequestLocalization (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Action<Microsoft.AspNetCore.Builder.RequestLocalizationOptions> optionsAction);
static member UseRequestLocalization : Microsoft.AspNetCore.Builder.IApplicationBuilder * Action<Microsoft.AspNetCore.Builder.RequestLocalizationOptions> -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseRequestLocalization (app As IApplicationBuilder, optionsAction As Action(Of RequestLocalizationOptions)) As IApplicationBuilder

Parameters

Returns

Remarks

This will going to instantiate a new RequestLocalizationOptions that doesn't come from the services.

UseRequestLocalization(IApplicationBuilder, String[]) UseRequestLocalization(IApplicationBuilder, String[]) UseRequestLocalization(IApplicationBuilder, String[])

Adds the RequestLocalizationMiddleware to automatically set culture information for requests based on information provided by the client.

public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseRequestLocalization (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, params string[] cultures);
static member UseRequestLocalization : Microsoft.AspNetCore.Builder.IApplicationBuilder * string[] -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseRequestLocalization (app As IApplicationBuilder, ParamArray cultures As String()) As IApplicationBuilder

Parameters

cultures
String[]

The culture names to be added by the application, which is represents both supported cultures and UI cultures.

Returns

Remarks

Note that the first culture is the default culture name.

Applies to