Condividi tramite


LocalizationServiceCollectionExtensions.AddLocalization Metodo

Definizione

Overload

AddLocalization(IServiceCollection)

Aggiunge i servizi richiesti per la localizzazione delle applicazioni.

AddLocalization(IServiceCollection, Action<LocalizationOptions>)

Aggiunge i servizi richiesti per la localizzazione delle applicazioni.

AddLocalization(IServiceCollection)

Origine:
LocalizationServiceCollectionExtensions.cs
Origine:
LocalizationServiceCollectionExtensions.cs
Origine:
LocalizationServiceCollectionExtensions.cs

Aggiunge i servizi richiesti per la localizzazione delle applicazioni.

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

Parametri

services
IServiceCollection

Oggetto IServiceCollection in cui aggiungere i servizi.

Restituisce

Oggetto IServiceCollection che consente il concatenamento di chiamate aggiuntive.

Si applica a

AddLocalization(IServiceCollection, Action<LocalizationOptions>)

Origine:
LocalizationServiceCollectionExtensions.cs
Origine:
LocalizationServiceCollectionExtensions.cs
Origine:
LocalizationServiceCollectionExtensions.cs

Aggiunge i servizi richiesti per la localizzazione delle applicazioni.

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

Parametri

services
IServiceCollection

Oggetto IServiceCollection in cui aggiungere i servizi.

setupAction
Action<LocalizationOptions>

Oggetto Action<T> per la configurazione di LocalizationOptions.

Restituisce

Oggetto IServiceCollection che consente il concatenamento di chiamate aggiuntive.

Si applica a