Click or drag to resize
ApplicationBuilderExtensionsUseDataAnnotationsLocalization Method
Enables localization of ASP.NET model meta-data based on data annotation attributes. Display names or validation results declared with data annotation attributes can contain keys of Kentico resource strings that will be resolved automatically using Kentico localization API. The localization uses a custom model metadata provider based on data annotations and is therefore not compatible with other providers or their customizations.

Namespace: Kentico.Web.Mvc
Assembly: Kentico.Web.Mvc (in Kentico.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
public static void UseDataAnnotationsLocalization(
	this IFeaturesBuilder builder
)

Parameters

builder
Type: Kentico.Web.MvcIFeaturesBuilder
The application builder.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IFeaturesBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also