共用方式為


MvcDataAnnotationsMvcBuilderExtensions.AddDataAnnotationsLocalization 方法

定義

多載

AddDataAnnotationsLocalization(IMvcBuilder)

將 MVC 資料批註當地語系化新增至應用程式。

AddDataAnnotationsLocalization(IMvcBuilder, Action<MvcDataAnnotationsLocalizationOptions>)

將 MVC 資料批註當地語系化新增至應用程式。

AddDataAnnotationsLocalization(IMvcBuilder)

來源:
MvcDataAnnotationsMvcBuilderExtensions.cs
來源:
MvcDataAnnotationsMvcBuilderExtensions.cs
來源:
MvcDataAnnotationsMvcBuilderExtensions.cs

將 MVC 資料批註當地語系化新增至應用程式。

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

參數

傳回

IMvcBuilder

適用於

AddDataAnnotationsLocalization(IMvcBuilder, Action<MvcDataAnnotationsLocalizationOptions>)

來源:
MvcDataAnnotationsMvcBuilderExtensions.cs
來源:
MvcDataAnnotationsMvcBuilderExtensions.cs
來源:
MvcDataAnnotationsMvcBuilderExtensions.cs

將 MVC 資料批註當地語系化新增至應用程式。

public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddDataAnnotationsLocalization (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Action<Microsoft.AspNetCore.Mvc.DataAnnotations.MvcDataAnnotationsLocalizationOptions> setupAction);
public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddDataAnnotationsLocalization (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Action<Microsoft.AspNetCore.Mvc.DataAnnotations.MvcDataAnnotationsLocalizationOptions>? setupAction);
static member AddDataAnnotationsLocalization : Microsoft.Extensions.DependencyInjection.IMvcBuilder * Action<Microsoft.AspNetCore.Mvc.DataAnnotations.MvcDataAnnotationsLocalizationOptions> -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function AddDataAnnotationsLocalization (builder As IMvcBuilder, setupAction As Action(Of MvcDataAnnotationsLocalizationOptions)) As IMvcBuilder

參數

傳回

IMvcBuilder

適用於