C# 클래스 Kentico.KInspector.Modules.ProjectCodeFilesHelper

Provides methods for listing of project code files.
파일 보기 프로젝트 열기: Kentico/KInspector

공개 프로퍼티들

프로퍼티 타입 설명
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