LocalizationServiceCollectionExtensions.AddLocalization Methode

Definition

Überlädt

AddLocalization(IServiceCollection)

Fügt die für die Anwendungslokalisierung erforderlichen Dienste hinzu.Adds services required for application localization.

AddLocalization(IServiceCollection, Action<LocalizationOptions>)

Fügt die für die Anwendungslokalisierung erforderlichen Dienste hinzu.Adds services required for application localization.

AddLocalization(IServiceCollection)

Fügt die für die Anwendungslokalisierung erforderlichen Dienste hinzu.Adds services required for application localization.

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

Die IServiceCollection, der Dienste hinzugefügt werden sollen.The IServiceCollection to add the services to.

Gibt zurück

Die IServiceCollection, sodass weitere Aufrufe verkettet werden können.The IServiceCollection so that additional calls can be chained.

AddLocalization(IServiceCollection, Action<LocalizationOptions>)

Fügt die für die Anwendungslokalisierung erforderlichen Dienste hinzu.Adds services required for application localization.

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

Die IServiceCollection, der Dienste hinzugefügt werden sollen.The IServiceCollection to add the services to.

setupAction
Action<LocalizationOptions>

Eine Action<T> zum Konfigurieren von LocalizationOptions.An Action<T> to configure the LocalizationOptions.

Gibt zurück

Die IServiceCollection-Schnittstelle zur Verkettung weiterer Aufrufe.The IServiceCollection so that additional calls can be chained.

Gilt für: