LocalizationServiceCollectionExtensions.AddLocalization Método

Definição

Sobrecargas

AddLocalization(IServiceCollection)

Adiciona os serviços necessários para localização do aplicativo.

AddLocalization(IServiceCollection, Action<LocalizationOptions>)

Adiciona os serviços necessários para localização do aplicativo.

AddLocalization(IServiceCollection)

Origem:
LocalizationServiceCollectionExtensions.cs
Origem:
LocalizationServiceCollectionExtensions.cs
Origem:
LocalizationServiceCollectionExtensions.cs
Origem:
LocalizationServiceCollectionExtensions.cs
Origem:
LocalizationServiceCollectionExtensions.cs

Adiciona os serviços necessários para localização do aplicativo.

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

O IServiceCollection ao qual adicionar os serviços.

Retornos

O IServiceCollection para que chamadas adicionais possam ser encadeadas.

Aplica-se a

AddLocalization(IServiceCollection, Action<LocalizationOptions>)

Origem:
LocalizationServiceCollectionExtensions.cs
Origem:
LocalizationServiceCollectionExtensions.cs
Origem:
LocalizationServiceCollectionExtensions.cs
Origem:
LocalizationServiceCollectionExtensions.cs
Origem:
LocalizationServiceCollectionExtensions.cs

Adiciona os serviços necessários para localização do aplicativo.

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

O IServiceCollection ao qual adicionar os serviços.

setupAction
Action<LocalizationOptions>

Um Action<T> para configurar o LocalizationOptions.

Retornos

O IServiceCollection para que chamadas adicionais possam ser encadeadas.

Aplica-se a