MvcLocalizationMvcBuilderExtensions.AddViewLocalization 方法

定義

多載

AddViewLocalization(IMvcBuilder)

將 MVC view 當地語系化服務新增至應用程式。

AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat)

將 MVC view 當地語系化服務新增至應用程式。

AddViewLocalization(IMvcBuilder, Action<LocalizationOptions>)

將 MVC view 當地語系化服務新增至應用程式。

AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat, Action<LocalizationOptions>)

將 MVC view 當地語系化服務新增至應用程式。

AddViewLocalization(IMvcBuilder)

將 MVC view 當地語系化服務新增至應用程式。

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

IMvcBuilder

適用於

AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat)

將 MVC view 當地語系化服務新增至應用程式。

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

IMvcBuilder

適用於

AddViewLocalization(IMvcBuilder, Action<LocalizationOptions>)

將 MVC view 當地語系化服務新增至應用程式。

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

IMvcBuilder

適用於

AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat, Action<LocalizationOptions>)

將 MVC view 當地語系化服務新增至應用程式。

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

IMvcBuilder

適用於