Share via


MvcDataAnnotationsMvcBuilderExtensions.AddDataAnnotationsLocalization Method

Definition

Overloads

AddDataAnnotationsLocalization(IMvcBuilder)

Adds MVC data annotations localization to the application.

AddDataAnnotationsLocalization(IMvcBuilder, Action<MvcDataAnnotationsLocalizationOptions>)

Adds MVC data annotations localization to the application.

AddDataAnnotationsLocalization(IMvcBuilder)

Source:
MvcDataAnnotationsMvcBuilderExtensions.cs
Source:
MvcDataAnnotationsMvcBuilderExtensions.cs
Source:
MvcDataAnnotationsMvcBuilderExtensions.cs

Adds MVC data annotations localization to the application.

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

Parameters

builder
IMvcBuilder

The IMvcBuilder.

Returns

The IMvcBuilder.

Applies to

AddDataAnnotationsLocalization(IMvcBuilder, Action<MvcDataAnnotationsLocalizationOptions>)

Source:
MvcDataAnnotationsMvcBuilderExtensions.cs
Source:
MvcDataAnnotationsMvcBuilderExtensions.cs
Source:
MvcDataAnnotationsMvcBuilderExtensions.cs

Adds MVC data annotations localization to the application.

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

Parameters

builder
IMvcBuilder

The IMvcBuilder.

Returns

The IMvcBuilder.

Applies to