C# Class Rebel.Cms.Web.Mvc.ViewEngines.AlternateViewEnginePathAttribute

An attribute for a controller that specifies that the ViewEngine should look for views for this controller using a different controllers name. This is useful if you want to share views between specific controllers but don't want to have to put all of the views into the Shared folder.
Inheritance: System.Attribute
Afficher le fichier Open project: RebelCMS/rebelcmsxu5

Méthodes publiques

Méthode Description
AlternateViewEnginePathAttribute ( string altControllerName ) : System
AlternateViewEnginePathAttribute ( string altControllerName, string altAreaName ) : System

Method Details

AlternateViewEnginePathAttribute() public méthode

public AlternateViewEnginePathAttribute ( string altControllerName ) : System
altControllerName string
Résultat System

AlternateViewEnginePathAttribute() public méthode

public AlternateViewEnginePathAttribute ( string altControllerName, string altAreaName ) : System
altControllerName string
altAreaName string
Résultat System