LocalizationServiceCollectionExtensions.AddLocalization Yöntem

Tanım

Aşırı Yüklemeler

AddLocalization(IServiceCollection)

Uygulama yerelleştirmesi için gereken hizmetleri ekler.

AddLocalization(IServiceCollection, Action<LocalizationOptions>)

Uygulama yerelleştirmesi için gereken hizmetleri ekler.

AddLocalization(IServiceCollection)

Kaynak:
LocalizationServiceCollectionExtensions.cs
Kaynak:
LocalizationServiceCollectionExtensions.cs

Uygulama yerelleştirmesi için gereken hizmetleri ekler.

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

Parametreler

services
IServiceCollection

IServiceCollection hizmetlerinin ekleneceği yer.

Döndürülenler

IServiceCollection böylece ek çağrılar zincirlenebilir.

Şunlara uygulanır

AddLocalization(IServiceCollection, Action<LocalizationOptions>)

Kaynak:
LocalizationServiceCollectionExtensions.cs
Kaynak:
LocalizationServiceCollectionExtensions.cs

Uygulama yerelleştirmesi için gereken hizmetleri ekler.

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

Parametreler

services
IServiceCollection

IServiceCollection hizmetlerinin ekleneceği yer.

setupAction
Action<LocalizationOptions>

yapılandırmak LocalizationOptionsiçin birAction<T>.

Döndürülenler

IServiceCollection böylece ek çağrılar zincirlenebilir.

Şunlara uygulanır