Bagikan melalui


LocalizationServiceCollectionExtensions.AddLocalization Metode

Definisi

Overload

AddLocalization(IServiceCollection)

Menambahkan layanan yang diperlukan untuk pelokalan aplikasi.

AddLocalization(IServiceCollection, Action<LocalizationOptions>)

Menambahkan layanan yang diperlukan untuk pelokalan aplikasi.

AddLocalization(IServiceCollection)

Sumber:
LocalizationServiceCollectionExtensions.cs
Sumber:
LocalizationServiceCollectionExtensions.cs
Sumber:
LocalizationServiceCollectionExtensions.cs
Sumber:
LocalizationServiceCollectionExtensions.cs
Sumber:
LocalizationServiceCollectionExtensions.cs

Menambahkan layanan yang diperlukan untuk pelokalan aplikasi.

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

Parameter

services
IServiceCollection

untuk IServiceCollection menambahkan layanan.

Mengembalikan

IServiceCollection Sehingga panggilan tambahan dapat dirangkai.

Berlaku untuk

AddLocalization(IServiceCollection, Action<LocalizationOptions>)

Sumber:
LocalizationServiceCollectionExtensions.cs
Sumber:
LocalizationServiceCollectionExtensions.cs
Sumber:
LocalizationServiceCollectionExtensions.cs
Sumber:
LocalizationServiceCollectionExtensions.cs
Sumber:
LocalizationServiceCollectionExtensions.cs

Menambahkan layanan yang diperlukan untuk pelokalan aplikasi.

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

Parameter

services
IServiceCollection

untuk IServiceCollection menambahkan layanan.

setupAction
Action<LocalizationOptions>

Action<T> untuk mengonfigurasi LocalizationOptions.

Mengembalikan

IServiceCollection Sehingga panggilan tambahan dapat dirangkai.

Berlaku untuk