Click or drag to resize
ApplicationBuilderExtensions Class
Provides extension methods related to Kentico ASP.NET MVC integration features.
Inheritance Hierarchy
SystemObject
  Kentico.Web.MvcApplicationBuilderExtensions

Namespace: Kentico.Web.Mvc
Assembly: Kentico.Web.Mvc (in Kentico.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
public static class ApplicationBuilderExtensions

The ApplicationBuilderExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberUseDataAnnotationsLocalization
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.
Public methodStatic memberUseResourceSharingWithAdministration
When request is sent from administration domain of the site, adds header Access-Control-Allow-Origin into response to enable cross origin resource sharing (CORS) with the administration.
Top
See Also