ViewHierarchyUtility Class

Definition

Contains methods to locate _ViewStart.cshtml and _ViewImports.cshtml

C#
public static class ViewHierarchyUtility
Inheritance
ViewHierarchyUtility

Fields

ViewImportsFileName

File name of _ViewImports.cshtml file

Methods

GetViewImportsLocations(String)

Gets the locations for _ViewImportss that are applicable to the specified path.

GetViewStartLocations(String)

Gets the view start locations that are applicable to the specified path.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1