Condividi tramite


RequestLocalizationOptionsExtensions.AddInitialRequestCultureProvider Metodo

Definizione

Consente di aggiungere un nuovo oggetto RequestCultureProvider a 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

Parametri

requestLocalizationOptions
RequestLocalizationOptions

Impostazioni cultura da aggiungere.

requestCultureProvider
RequestCultureProvider

Impostazioni cultura da aggiungere.

Restituisce

Oggetto RequestLocalizationOptions.

Commenti

Questo metodo garantisce la requestCultureProvider priorità rispetto ad altre RequestCultureProvider istanze in RequestCultureProviders.

Si applica a