MvcDataAnnotationsMvcCoreBuilderExtensions.AddDataAnnotationsLocalization Method

Definition

Overloads

AddDataAnnotationsLocalization(IMvcCoreBuilder)

Adds MVC data annotations localization to the application.

AddDataAnnotationsLocalization(IMvcCoreBuilder, Action<MvcDataAnnotationsLocalizationOptions>)

Registers an action to configure MvcDataAnnotationsLocalizationOptions for MVC data annotations localization.

AddDataAnnotationsLocalization(IMvcCoreBuilder)

Source:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Source:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Source:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs

Adds MVC data annotations localization to the application.

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

Parameters

Returns

The IMvcCoreBuilder.

Applies to

AddDataAnnotationsLocalization(IMvcCoreBuilder, Action<MvcDataAnnotationsLocalizationOptions>)

Source:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Source:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Source:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs

Registers an action to configure MvcDataAnnotationsLocalizationOptions for MVC data annotations localization.

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

Parameters

Returns

The IMvcBuilder.

Applies to