MvcLocalizationMvcBuilderExtensions.AddViewLocalization メソッド

定義

オーバーロード

AddViewLocalization(IMvcBuilder)

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

AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat)

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

AddViewLocalization(IMvcBuilder, Action<LocalizationOptions>)

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

AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat, Action<LocalizationOptions>)

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

AddViewLocalization(IMvcBuilder)

ソース:
MvcLocalizationMvcBuilderExtensions.cs
ソース:
MvcLocalizationMvcBuilderExtensions.cs
ソース:
MvcLocalizationMvcBuilderExtensions.cs

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

public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddViewLocalization (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder);
static member AddViewLocalization : Microsoft.Extensions.DependencyInjection.IMvcBuilder -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function AddViewLocalization (builder As IMvcBuilder) As IMvcBuilder

パラメーター

戻り値

IMvcBuilder

適用対象

AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat)

ソース:
MvcLocalizationMvcBuilderExtensions.cs
ソース:
MvcLocalizationMvcBuilderExtensions.cs
ソース:
MvcLocalizationMvcBuilderExtensions.cs

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

public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddViewLocalization (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format);
static member AddViewLocalization : Microsoft.Extensions.DependencyInjection.IMvcBuilder * Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function AddViewLocalization (builder As IMvcBuilder, format As LanguageViewLocationExpanderFormat) As IMvcBuilder

パラメーター

format
LanguageViewLocationExpanderFormat

ローカライズされたビューのビュー形式。

戻り値

IMvcBuilder

適用対象

AddViewLocalization(IMvcBuilder, Action<LocalizationOptions>)

ソース:
MvcLocalizationMvcBuilderExtensions.cs
ソース:
MvcLocalizationMvcBuilderExtensions.cs
ソース:
MvcLocalizationMvcBuilderExtensions.cs

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

public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddViewLocalization (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Action<Microsoft.Extensions.Localization.LocalizationOptions> setupAction);
public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddViewLocalization (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Action<Microsoft.Extensions.Localization.LocalizationOptions>? setupAction);
static member AddViewLocalization : Microsoft.Extensions.DependencyInjection.IMvcBuilder * Action<Microsoft.Extensions.Localization.LocalizationOptions> -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function AddViewLocalization (builder As IMvcBuilder, setupAction As Action(Of LocalizationOptions)) As IMvcBuilder

パラメーター

setupAction
Action<LocalizationOptions>

を構成 LocalizationOptionsするアクション。

戻り値

IMvcBuilder

適用対象

AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat, Action<LocalizationOptions>)

ソース:
MvcLocalizationMvcBuilderExtensions.cs
ソース:
MvcLocalizationMvcBuilderExtensions.cs
ソース:
MvcLocalizationMvcBuilderExtensions.cs

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

public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddViewLocalization (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format, Action<Microsoft.Extensions.Localization.LocalizationOptions> setupAction);
public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddViewLocalization (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format, Action<Microsoft.Extensions.Localization.LocalizationOptions>? setupAction);
static member AddViewLocalization : Microsoft.Extensions.DependencyInjection.IMvcBuilder * Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat * Action<Microsoft.Extensions.Localization.LocalizationOptions> -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function AddViewLocalization (builder As IMvcBuilder, format As LanguageViewLocationExpanderFormat, setupAction As Action(Of LocalizationOptions)) As IMvcBuilder

パラメーター

format
LanguageViewLocationExpanderFormat

ローカライズされたビューのビュー形式。

setupAction
Action<LocalizationOptions>

を構成 LocalizationOptionsするアクション。

戻り値

IMvcBuilder

適用対象