Udostępnij za pośrednictwem


RequestLocalizationOptionsExtensions.AddInitialRequestCultureProvider Metoda

Definicja

Dodaje nowy RequestCultureProvider element do elementu 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

Parametry

requestLocalizationOptions
RequestLocalizationOptions

Kultury do dodania.

requestCultureProvider
RequestCultureProvider

Kultury do dodania.

Zwraca

Element RequestLocalizationOptions.

Uwagi

Ta metoda gwarantuje, że requestCultureProvider ma priorytet dla innych RequestCultureProvider wystąpień w systemie RequestCultureProviders.

Dotyczy