MvcDataAnnotationsMvcCoreBuilderExtensions.AddDataAnnotationsLocalization Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
AddDataAnnotationsLocalization(IMvcCoreBuilder) |
Agrega la localización de anotaciones de datos MVC a la aplicación. |
AddDataAnnotationsLocalization(IMvcCoreBuilder, Action<MvcDataAnnotationsLocalizationOptions>) |
Registra una acción para configurar MvcDataAnnotationsLocalizationOptions la localización de anotaciones de datos de MVC. |
AddDataAnnotationsLocalization(IMvcCoreBuilder)
Agrega la localización de anotaciones de datos MVC a la aplicación.
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
Parámetros
- builder
- IMvcCoreBuilder
Devoluciones
Se aplica a
AddDataAnnotationsLocalization(IMvcCoreBuilder, Action<MvcDataAnnotationsLocalizationOptions>)
Registra una acción para configurar MvcDataAnnotationsLocalizationOptions la localización de anotaciones de datos de 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
Parámetros
- builder
- IMvcCoreBuilder
- setupAction
- Action<MvcDataAnnotationsLocalizationOptions>
Una clase Action<T>.