LocalizationServiceCollectionExtensions.AddLocalization メソッド

定義

オーバーロード

AddLocalization(IServiceCollection)

アプリケーションのローカライズに必要なサービスを追加します。Adds services required for application localization.

AddLocalization(IServiceCollection, Action<LocalizationOptions>)

アプリケーションのローカライズに必要なサービスを追加します。Adds services required for application localization.

AddLocalization(IServiceCollection)

アプリケーションのローカライズに必要なサービスを追加します。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

パラメーター

services
IServiceCollection

サービスを追加する先の IServiceCollectionThe IServiceCollection to add the services to.

戻り値

IServiceCollection

追加の呼び出しをチェーンできるようにする IServiceCollectionThe IServiceCollection so that additional calls can be chained.

適用対象

AddLocalization(IServiceCollection, Action<LocalizationOptions>)

アプリケーションのローカライズに必要なサービスを追加します。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

パラメーター

services
IServiceCollection

サービスを追加する先の IServiceCollectionThe IServiceCollection to add the services to.

setupAction
Action<LocalizationOptions>

LocalizationOptions を構成するための Action<T>An Action<T> to configure the LocalizationOptions.

戻り値

IServiceCollection

追加の呼び出しをチェーンできるようにする IServiceCollectionThe IServiceCollection so that additional calls can be chained.

適用対象