Sdílet prostřednictvím


LocalizationServiceCollectionExtensions.AddLocalization Metoda

Definice

Přetížení

AddLocalization(IServiceCollection)

Přidá služby vyžadované pro lokalizaci aplikace.

AddLocalization(IServiceCollection, Action<LocalizationOptions>)

Přidá služby vyžadované pro lokalizaci aplikace.

AddLocalization(IServiceCollection)

Zdroj:
LocalizationServiceCollectionExtensions.cs
Zdroj:
LocalizationServiceCollectionExtensions.cs
Zdroj:
LocalizationServiceCollectionExtensions.cs

Přidá služby vyžadované pro lokalizaci aplikace.

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

Parametry

services
IServiceCollection

Chcete-li IServiceCollection přidat služby do.

Návraty

Aby IServiceCollection bylo možné zřetězovat další volání.

Platí pro

AddLocalization(IServiceCollection, Action<LocalizationOptions>)

Zdroj:
LocalizationServiceCollectionExtensions.cs
Zdroj:
LocalizationServiceCollectionExtensions.cs
Zdroj:
LocalizationServiceCollectionExtensions.cs

Přidá služby vyžadované pro lokalizaci aplikace.

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

Parametry

services
IServiceCollection

Chcete-li IServiceCollection přidat služby do.

setupAction
Action<LocalizationOptions>

An Action<T> pro konfiguraci objektu LocalizationOptions.

Návraty

Aby IServiceCollection bylo možné zřetězovat další volání.

Platí pro