C# 클래스 Microsoft.VisualStudio.Project.ProjectFactory

상속: Microsoft.VisualStudio.Shell.Flavor.FlavoredProjectFactoryBase
파일 보기 프로젝트 열기: tunnelvisionlabs/MPFProj10 1 사용 예제들

공개 메소드들

메소드 설명
CanCreateProjectAsynchronously ( System.Guid &rguidProjectID, string filename, uint flags ) : bool
CreateProjectAsync ( System.Guid &rguidProjectID, string filename, string location, string pszName, uint flags ) : IVsTask
OnBeforeCreateProjectAsync ( System.Guid &rguidProjectID, string filename, string location, string pszName, uint flags ) : void

보호된 메소드들

메소드 설명
CreateProject ( ) : ProjectNode
CreateProject ( string fileName, string location, string name, uint flags, System.Guid &projectGuid, IntPtr &project, int &canceled ) : void

Rather than directly creating the project, ask VS to initate the process of creating an aggregated project in case we are flavored. We will be called on the IVsAggregatableProjectFactory to do the real project creation.

GetProjectEventsProvider ( ) : IProjectEvents
ProjectFactory ( Microsoft package ) : System
ProjectTypeGuids ( string file ) : string

Retrives the list of project guids from the project file. If you don't want your project to be flavorable, override to only return your project factory Guid: return this.GetType().GUID.ToString("B");

비공개 메소드들

메소드 설명
PreCreateForOuter ( IntPtr outerProjectIUnknown ) : object

메소드 상세

CanCreateProjectAsynchronously() 공개 메소드

public CanCreateProjectAsynchronously ( System.Guid &rguidProjectID, string filename, uint flags ) : bool
rguidProjectID System.Guid
filename string
flags uint
리턴 bool

CreateProject() 보호된 추상적인 메소드

protected abstract CreateProject ( ) : ProjectNode
리턴 ProjectNode

CreateProject() 보호된 메소드

Rather than directly creating the project, ask VS to initate the process of creating an aggregated project in case we are flavored. We will be called on the IVsAggregatableProjectFactory to do the real project creation.
protected CreateProject ( string fileName, string location, string name, uint flags, System.Guid &projectGuid, IntPtr &project, int &canceled ) : void
fileName string Project file
location string Path of the project
name string Project Name
flags uint Creation flags
projectGuid System.Guid Guid of the project
project System.IntPtr Project that end up being created by this method
canceled int Was the project creation canceled
리턴 void

CreateProjectAsync() 공개 메소드

public CreateProjectAsync ( System.Guid &rguidProjectID, string filename, string location, string pszName, uint flags ) : IVsTask
rguidProjectID System.Guid
filename string
location string
pszName string
flags uint
리턴 IVsTask

GetProjectEventsProvider() 보호된 메소드

protected GetProjectEventsProvider ( ) : IProjectEvents
리턴 IProjectEvents

OnBeforeCreateProjectAsync() 공개 메소드

public OnBeforeCreateProjectAsync ( System.Guid &rguidProjectID, string filename, string location, string pszName, uint flags ) : void
rguidProjectID System.Guid
filename string
location string
pszName string
flags uint
리턴 void

ProjectFactory() 보호된 메소드

protected ProjectFactory ( Microsoft package ) : System
package Microsoft
리턴 System

ProjectTypeGuids() 보호된 메소드

Retrives the list of project guids from the project file. If you don't want your project to be flavorable, override to only return your project factory Guid: return this.GetType().GUID.ToString("B");
protected ProjectTypeGuids ( string file ) : string
file string Project file to look into to find the Guid list
리턴 string