RequestLocalizationOptionsExtensions.AddInitialRequestCultureProvider Método

Definición

Agrega un nuevo objeto RequestCultureProvider a la colección RequestCultureProviders.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::RequestLocalizationOptions ^ AddInitialRequestCultureProvider(Microsoft::AspNetCore::Builder::RequestLocalizationOptions ^ requestLocalizationOptions, Microsoft::AspNetCore::Localization::RequestCultureProvider ^ requestCultureProvider);
public static Microsoft.AspNetCore.Builder.RequestLocalizationOptions AddInitialRequestCultureProvider (this Microsoft.AspNetCore.Builder.RequestLocalizationOptions requestLocalizationOptions, Microsoft.AspNetCore.Localization.RequestCultureProvider requestCultureProvider);
static member AddInitialRequestCultureProvider : Microsoft.AspNetCore.Builder.RequestLocalizationOptions * Microsoft.AspNetCore.Localization.RequestCultureProvider -> Microsoft.AspNetCore.Builder.RequestLocalizationOptions
<Extension()>
Public Function AddInitialRequestCultureProvider (requestLocalizationOptions As RequestLocalizationOptions, requestCultureProvider As RequestCultureProvider) As RequestLocalizationOptions

Parámetros

requestLocalizationOptions
RequestLocalizationOptions

Referencias culturales que se van a agregar.

requestCultureProvider
RequestCultureProvider

Referencias culturales que se van a agregar.

Devoluciones

RequestLocalizationOptions.

Comentarios

Este método garantiza que requestCultureProvider tiene prioridad sobre otras RequestCultureProvider instancias de RequestCultureProviders.

Se aplica a