LocalizationServiceCollectionExtensions.AddLocalization メソッド

定義

オーバーロード

AddLocalization(IServiceCollection)

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

AddLocalization(IServiceCollection, Action<LocalizationOptions>)

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

AddLocalization(IServiceCollection)

ソース:
LocalizationServiceCollectionExtensions.cs
ソース:
LocalizationServiceCollectionExtensions.cs
ソース:
LocalizationServiceCollectionExtensions.cs
ソース:
LocalizationServiceCollectionExtensions.cs
ソース:
LocalizationServiceCollectionExtensions.cs

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

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

サービスを追加する先の IServiceCollection

戻り値

追加の呼び出しをチェーンできるようにする IServiceCollection

適用対象

AddLocalization(IServiceCollection, Action<LocalizationOptions>)

ソース:
LocalizationServiceCollectionExtensions.cs
ソース:
LocalizationServiceCollectionExtensions.cs
ソース:
LocalizationServiceCollectionExtensions.cs
ソース:
LocalizationServiceCollectionExtensions.cs
ソース:
LocalizationServiceCollectionExtensions.cs

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

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

サービスを追加する先の IServiceCollection

setupAction
Action<LocalizationOptions>

LocalizationOptions を構成するための Action<T>

戻り値

追加の呼び出しをチェーンできるようにする IServiceCollection

適用対象