RequestLocalizationOptionsExtensions.AddInitialRequestCultureProvider Méthode

Définition

Ajoute un nouvel objet RequestCultureProvider au 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

Paramètres

requestLocalizationOptions
RequestLocalizationOptions

Cultures à ajouter.

requestCultureProvider
RequestCultureProvider

Cultures à ajouter.

Retours

L’RequestLocalizationOptionsopérateur

Remarques

Cette méthode garantit la requestCultureProvider priorité par rapport aux autres RequestCultureProvider instances dans RequestCultureProviders.

S’applique à