Compartir a través de


ApplicationBuilderExtensions.UseRequestLocalization Método

Definición

Sobrecargas

UseRequestLocalization(IApplicationBuilder)

Agrega para establecer automáticamente la RequestLocalizationMiddleware información de referencia cultural de las solicitudes en función de la información proporcionada por el cliente.

UseRequestLocalization(IApplicationBuilder, RequestLocalizationOptions)

Agrega para establecer automáticamente la RequestLocalizationMiddleware información de referencia cultural de las solicitudes en función de la información proporcionada por el cliente.

UseRequestLocalization(IApplicationBuilder, Action<RequestLocalizationOptions>)

Agrega para establecer automáticamente la RequestLocalizationMiddleware información de referencia cultural de las solicitudes en función de la información proporcionada por el cliente.

UseRequestLocalization(IApplicationBuilder, String[])

Agrega para establecer automáticamente la RequestLocalizationMiddleware información de referencia cultural de las solicitudes en función de la información proporcionada por el cliente.

UseRequestLocalization(IApplicationBuilder)

Source:
ApplicationBuilderExtensions.cs
Source:
ApplicationBuilderExtensions.cs
Source:
ApplicationBuilderExtensions.cs

Agrega para establecer automáticamente la RequestLocalizationMiddleware información de referencia cultural de las solicitudes en función de la información proporcionada por el cliente.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseRequestLocalization(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
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

Parámetros

Devoluciones

IApplicationBuilder.

Se aplica a

UseRequestLocalization(IApplicationBuilder, RequestLocalizationOptions)

Source:
ApplicationBuilderExtensions.cs
Source:
ApplicationBuilderExtensions.cs
Source:
ApplicationBuilderExtensions.cs

Agrega para establecer automáticamente la RequestLocalizationMiddleware información de referencia cultural de las solicitudes en función de la información proporcionada por el cliente.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseRequestLocalization(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Builder::RequestLocalizationOptions ^ options);
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

Parámetros

options
RequestLocalizationOptions

con RequestLocalizationOptions el que se va a configurar el middleware.

Devoluciones

IApplicationBuilder.

Se aplica a

UseRequestLocalization(IApplicationBuilder, Action<RequestLocalizationOptions>)

Source:
ApplicationBuilderExtensions.cs
Source:
ApplicationBuilderExtensions.cs
Source:
ApplicationBuilderExtensions.cs

Agrega para establecer automáticamente la RequestLocalizationMiddleware información de referencia cultural de las solicitudes en función de la información proporcionada por el cliente.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseRequestLocalization(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Action<Microsoft::AspNetCore::Builder::RequestLocalizationOptions ^> ^ optionsAction);
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

Parámetros

optionsAction
Action<RequestLocalizationOptions>

Devolución de llamada que configura .RequestLocalizationOptions

Devoluciones

IApplicationBuilder.

Comentarios

Esto creará una instancia de un nuevo RequestLocalizationOptions que no provendrá de los servicios.

Se aplica a

UseRequestLocalization(IApplicationBuilder, String[])

Source:
ApplicationBuilderExtensions.cs
Source:
ApplicationBuilderExtensions.cs
Source:
ApplicationBuilderExtensions.cs

Agrega para establecer automáticamente la RequestLocalizationMiddleware información de referencia cultural de las solicitudes en función de la información proporcionada por el cliente.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseRequestLocalization(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, ... cli::array <System::String ^> ^ cultures);
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

Parámetros

cultures
String[]

Los nombres de referencia cultural que va a agregar la aplicación, que representa las referencias culturales admitidas y las referencias culturales de la interfaz de usuario.

Devoluciones

IApplicationBuilder.

Comentarios

Tenga en cuenta que la primera referencia cultural es el nombre de referencia cultural predeterminado.

Se aplica a