C# Класс Kentico.KInspector.Modules.ProjectCodeFilesHelper

Provides methods for listing of project code files.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
Current ProjectCodeFilesHelper

Открытые методы

Метод Описание
GetCustomerProjectCodeFiles ( DirectoryInfo pathToKenticoInstance, System.Version version, bool isWebSiteProject, bool onlyCsFiles = false ) : IEnumerable

Gets enumeration of .cs, .aspx and .ascx files (.designer.cs files are excluded) residing in pathToKenticoInstance which are not shipped with default Kentico installation. The files are relative paths within pathToKenticoInstance.

GetDefaultProjectCodeFiles ( System.Version version, bool isWebSiteProject ) : IEnumerable

Gets enumeration of .cs, .aspx and .ascx files (.designer.cs files are excluded) shipped with default Kentico installation. The files are relative paths within default installation.

GetProjectCodeFiles ( string pathToKenticoInstance, bool onlyCsFiles ) : IEnumerable

Gets enumeration of .cs, .aspx and .ascx files (.designer.cs files are excluded) residing in pathToKenticoInstance. The files are relative paths within pathToKenticoInstance.

IsWebSiteProject ( DirectoryInfo pathToKenticoInstance ) : bool

Tells you whether instance is web site or web application (based on presence of some well-known .designer.cs file).

Приватные методы

Метод Описание
GetMetaFilePath ( System.Version version, bool isWebSiteProject ) : string

Gets path to metafile with information about default installation files.

Описание методов

GetCustomerProjectCodeFiles() публичный Метод

Gets enumeration of .cs, .aspx and .ascx files (.designer.cs files are excluded) residing in pathToKenticoInstance which are not shipped with default Kentico installation. The files are relative paths within pathToKenticoInstance.
public GetCustomerProjectCodeFiles ( DirectoryInfo pathToKenticoInstance, System.Version version, bool isWebSiteProject, bool onlyCsFiles = false ) : IEnumerable
pathToKenticoInstance System.IO.DirectoryInfo Path to Kentico instance (e.g. C:\inetpub\wwwroot\myKenticoInstance\CMS).
version System.Version Kentico version.
isWebSiteProject bool Whether to return default files of web site or web application project.
onlyCsFiles bool
Результат IEnumerable

GetDefaultProjectCodeFiles() публичный Метод

Gets enumeration of .cs, .aspx and .ascx files (.designer.cs files are excluded) shipped with default Kentico installation. The files are relative paths within default installation.
Thrown when version is not supported.
public GetDefaultProjectCodeFiles ( System.Version version, bool isWebSiteProject ) : IEnumerable
version System.Version Kentico version.
isWebSiteProject bool Whether to return default files of web site or web application project.
Результат IEnumerable

GetProjectCodeFiles() публичный Метод

Gets enumeration of .cs, .aspx and .ascx files (.designer.cs files are excluded) residing in pathToKenticoInstance. The files are relative paths within pathToKenticoInstance.
public GetProjectCodeFiles ( string pathToKenticoInstance, bool onlyCsFiles ) : IEnumerable
pathToKenticoInstance string Path to Kentico instance (e.g. C:\inetpub\wwwroot\myKenticoInstance\CMS).
onlyCsFiles bool Whether to select only .cs files
Результат IEnumerable

IsWebSiteProject() публичный Метод

Tells you whether instance is web site or web application (based on presence of some well-known .designer.cs file).
public IsWebSiteProject ( DirectoryInfo pathToKenticoInstance ) : bool
pathToKenticoInstance System.IO.DirectoryInfo Path to Kentico instance (e.g. C:\inetpub\wwwroot\myKenticoInstance\CMS).
Результат bool

Описание свойств

Current публичное статическое свойство

public static ProjectCodeFilesHelper,Kentico.KInspector.Modules Current
Результат ProjectCodeFilesHelper