C# 클래스 Umbraco.UmbracoStudio.VisualStudio.ProjectCache

Cache that stores project based on multiple names. i.e. Project can be retrieved by name (if non conflicting), unique name and custom unique name.
파일 보기 프로젝트 열기: umbraco/Visual-Studio-Extension 1 사용 예제들

공개 메소드들

메소드 설명
AddProject ( Project project ) : ProjectName

Add a project to the cache.

Contains ( string name ) : bool
GetProjects ( ) : IEnumerable

Returns all cached projects.

IsAmbiguous ( string shortName ) : bool

Determines if a short name is ambiguous

RemoveProject ( string name ) : void

Removes a project and returns the project name instance of the removed project.

TryGetProject ( string name, Project &project ) : bool

Finds a project by short name, unique name or custom unique name.

TryGetProjectName ( string name, ProjectName &projectName ) : bool

Finds a project name by short name, unique name or custom unique name.

TryGetProjectNameByShortName ( string name, ProjectName &projectName ) : bool

Tries to find a project by short name. Returns the project name if and only if it is non-ambiguous.

비공개 메소드들

메소드 설명
AddShortName ( ProjectName projectName ) : void

Adds an entry to the short name cache returning any conflicting project name.

RemoveProjectName ( ProjectName projectName ) : void

Removes a project from the project name dictionary.

RemoveShortName ( ProjectName projectName ) : void

Removes a project from the short name cache.

메소드 상세

AddProject() 공개 메소드

Add a project to the cache.
public AddProject ( Project project ) : ProjectName
project Project project to add to the cache.
리턴 ProjectName

Contains() 공개 메소드

public Contains ( string name ) : bool
name string
리턴 bool

GetProjects() 공개 메소드

Returns all cached projects.
public GetProjects ( ) : IEnumerable
리턴 IEnumerable

IsAmbiguous() 공개 메소드

Determines if a short name is ambiguous
public IsAmbiguous ( string shortName ) : bool
shortName string short name of the project
리턴 bool

RemoveProject() 공개 메소드

Removes a project and returns the project name instance of the removed project.
public RemoveProject ( string name ) : void
name string name of the project to remove.
리턴 void

TryGetProject() 공개 메소드

Finds a project by short name, unique name or custom unique name.
public TryGetProject ( string name, Project &project ) : bool
name string name of the project to retrieve.
project Project project instance
리턴 bool

TryGetProjectName() 공개 메소드

Finds a project name by short name, unique name or custom unique name.
public TryGetProjectName ( string name, ProjectName &projectName ) : bool
name string name of the project
projectName ProjectName project name instance
리턴 bool

TryGetProjectNameByShortName() 공개 메소드

Tries to find a project by short name. Returns the project name if and only if it is non-ambiguous.
public TryGetProjectNameByShortName ( string name, ProjectName &projectName ) : bool
name string
projectName ProjectName
리턴 bool