MvcDataAnnotationsMvcBuilderExtensions.AddDataAnnotationsLocalization 方法         
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| AddDataAnnotationsLocalization(IMvcBuilder) | 
						 向应用程序添加 MVC 数据注释本地化。  | 
        	
| AddDataAnnotationsLocalization(IMvcBuilder, Action<MvcDataAnnotationsLocalizationOptions>) | 
						 向应用程序添加 MVC 数据注释本地化。  | 
        	
AddDataAnnotationsLocalization(IMvcBuilder)
向应用程序添加 MVC 数据注释本地化。
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
	参数
- builder
 - IMvcBuilder
 
返回
适用于
AddDataAnnotationsLocalization(IMvcBuilder, Action<MvcDataAnnotationsLocalizationOptions>)
向应用程序添加 MVC 数据注释本地化。
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
	参数
- builder
 - IMvcBuilder
 
- setupAction
 - Action<MvcDataAnnotationsLocalizationOptions>