Sdílet prostřednictvím


RequestLocalizationOptionsExtensions.AddInitialRequestCultureProvider Metoda

Definice

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

Jazykové verze, které se mají přidat.

requestCultureProvider
RequestCultureProvider

Jazykové verze, které se mají přidat.

Návraty

Hodnota RequestLocalizationOptions

Poznámky

Tato metoda zajišťuje, že requestCultureProvider má přednost před jinými RequestCultureProvider instancemi v RequestCultureProvidersnástroji .

Platí pro