Comparteix a través de


LocalizationServiceCollectionExtensions.AddLocalization Método

Definición

Sobrecargas

AddLocalization(IServiceCollection)

Agrega los servicios necesarios para la localización de la aplicación.

AddLocalization(IServiceCollection, Action<LocalizationOptions>)

Agrega los servicios necesarios para la localización de la aplicación.

AddLocalization(IServiceCollection)

Source:
LocalizationServiceCollectionExtensions.cs
Source:
LocalizationServiceCollectionExtensions.cs
Source:
LocalizationServiceCollectionExtensions.cs
Source:
LocalizationServiceCollectionExtensions.cs
Source:
LocalizationServiceCollectionExtensions.cs

Agrega los servicios necesarios para la localización de la aplicación.

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

Parámetros

services
IServiceCollection

La interfaz IServiceCollection a la que se van a agregar los servicios.

Devoluciones

La interfaz IServiceCollection para que se puedan encadenar llamadas adicionales.

Se aplica a

AddLocalization(IServiceCollection, Action<LocalizationOptions>)

Source:
LocalizationServiceCollectionExtensions.cs
Source:
LocalizationServiceCollectionExtensions.cs
Source:
LocalizationServiceCollectionExtensions.cs
Source:
LocalizationServiceCollectionExtensions.cs
Source:
LocalizationServiceCollectionExtensions.cs

Agrega los servicios necesarios para la localización de la aplicación.

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

Parámetros

services
IServiceCollection

La interfaz IServiceCollection a la que se van a agregar los servicios.

setupAction
Action<LocalizationOptions>

Action<T> para configurar la instancia de LocalizationOptions.

Devoluciones

La interfaz IServiceCollection para que se puedan encadenar llamadas adicionales.

Se aplica a