Partager via


LocalizationServiceCollectionExtensions.AddLocalization Méthode

Définition

Surcharges

AddLocalization(IServiceCollection)

Ajoute les services nécessaires à la localisation de l’application.

AddLocalization(IServiceCollection, Action<LocalizationOptions>)

Ajoute les services nécessaires à la localisation de l’application.

AddLocalization(IServiceCollection)

Source:
LocalizationServiceCollectionExtensions.cs
Source:
LocalizationServiceCollectionExtensions.cs
Source:
LocalizationServiceCollectionExtensions.cs
Source:
LocalizationServiceCollectionExtensions.cs
Source:
LocalizationServiceCollectionExtensions.cs

Ajoute les services nécessaires à la localisation de l’application.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddLocalization(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddLocalization (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddLocalization : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddLocalization (services As IServiceCollection) As IServiceCollection

Paramètres

services
IServiceCollection

IServiceCollection auquel ajouter les services.

Retours

IServiceCollection à utiliser pour chaîner des appels supplémentaires.

S’applique à

AddLocalization(IServiceCollection, Action<LocalizationOptions>)

Source:
LocalizationServiceCollectionExtensions.cs
Source:
LocalizationServiceCollectionExtensions.cs
Source:
LocalizationServiceCollectionExtensions.cs
Source:
LocalizationServiceCollectionExtensions.cs
Source:
LocalizationServiceCollectionExtensions.cs

Ajoute les services nécessaires à la localisation de l’application.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddLocalization(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Localization::LocalizationOptions ^> ^ setupAction);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddLocalization (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Localization.LocalizationOptions> setupAction);
static member AddLocalization : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Localization.LocalizationOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddLocalization (services As IServiceCollection, setupAction As Action(Of LocalizationOptions)) As IServiceCollection

Paramètres

services
IServiceCollection

IServiceCollection auquel ajouter les services.

setupAction
Action<LocalizationOptions>

Action<T> permettant de configurer le LocalizationOptions.

Retours

IServiceCollection à utiliser pour chaîner des appels supplémentaires.

S’applique à