Bagikan melalui


MvcDataAnnotationsMvcCoreBuilderExtensions.AddDataAnnotationsLocalization Metode

Definisi

Overload

AddDataAnnotationsLocalization(IMvcCoreBuilder)

Menambahkan pelokalan anotasi data MVC ke aplikasi.

AddDataAnnotationsLocalization(IMvcCoreBuilder, Action<MvcDataAnnotationsLocalizationOptions>)

Mendaftarkan tindakan untuk mengonfigurasi MvcDataAnnotationsLocalizationOptions pelokalan anotasi data MVC.

AddDataAnnotationsLocalization(IMvcCoreBuilder)

Sumber:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Sumber:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Sumber:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs

Menambahkan pelokalan anotasi data MVC ke aplikasi.

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

Parameter

Mengembalikan

IMvcCoreBuilder.

Berlaku untuk

AddDataAnnotationsLocalization(IMvcCoreBuilder, Action<MvcDataAnnotationsLocalizationOptions>)

Sumber:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Sumber:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Sumber:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs

Mendaftarkan tindakan untuk mengonfigurasi MvcDataAnnotationsLocalizationOptions pelokalan anotasi data MVC.

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

Parameter

Mengembalikan

IMvcBuilder.

Berlaku untuk