Udostępnij za pośrednictwem


LocalizationServiceCollectionExtensions.AddLocalization Metoda

Definicja

Przeciążenia

AddLocalization(IServiceCollection)

Dodaje usługi wymagane do lokalizacji aplikacji.

AddLocalization(IServiceCollection, Action<LocalizationOptions>)

Dodaje usługi wymagane do lokalizacji aplikacji.

AddLocalization(IServiceCollection)

Źródło:
LocalizationServiceCollectionExtensions.cs
Źródło:
LocalizationServiceCollectionExtensions.cs
Źródło:
LocalizationServiceCollectionExtensions.cs

Dodaje usługi wymagane do lokalizacji aplikacji.

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

Element IServiceCollection do dodawania usług.

Zwraca

Tak IServiceCollection , aby można było połączyć dodatkowe wywołania.

Dotyczy

AddLocalization(IServiceCollection, Action<LocalizationOptions>)

Źródło:
LocalizationServiceCollectionExtensions.cs
Źródło:
LocalizationServiceCollectionExtensions.cs
Źródło:
LocalizationServiceCollectionExtensions.cs

Dodaje usługi wymagane do lokalizacji aplikacji.

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

Element IServiceCollection do dodawania usług.

setupAction
Action<LocalizationOptions>

Element do Action<T> skonfigurowania elementu LocalizationOptions.

Zwraca

Tak IServiceCollection , aby można było połączyć dodatkowe wywołania.

Dotyczy