MvcDataAnnotationsMvcBuilderExtensions.AddDataAnnotationsLocalization Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
AddDataAnnotationsLocalization(IMvcBuilder) |
Adds MVC data annotations localization to the application. |
AddDataAnnotationsLocalization(IMvcBuilder, Action<MvcDataAnnotationsLocalizationOptions>) |
Adds MVC data annotations localization to the application. |
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
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.
- setupAction
- Action<MvcDataAnnotationsLocalizationOptions>
The action to configure MvcDataAnnotationsLocalizationOptions.
Returns
The IMvcBuilder.