C# Class Microsoft.VisualStudio.Project.ProjectFactory

Inheritance: Microsoft.VisualStudio.Shell.Flavor.FlavoredProjectFactoryBase
Afficher le fichier Open project: tunnelvisionlabs/MPFProj10 Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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");

Private Methods

Méthode Description
PreCreateForOuter ( IntPtr outerProjectIUnknown ) : object

Method Details

CanCreateProjectAsynchronously() public méthode

public CanCreateProjectAsynchronously ( System.Guid &rguidProjectID, string filename, uint flags ) : bool
rguidProjectID System.Guid
filename string
flags uint
Résultat bool

CreateProject() protected abstract méthode

protected abstract CreateProject ( ) : ProjectNode
Résultat ProjectNode

CreateProject() protected méthode

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
Résultat void

CreateProjectAsync() public méthode

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
Résultat IVsTask

GetProjectEventsProvider() protected méthode

protected GetProjectEventsProvider ( ) : IProjectEvents
Résultat IProjectEvents

OnBeforeCreateProjectAsync() public méthode

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
Résultat void

ProjectFactory() protected méthode

protected ProjectFactory ( Microsoft package ) : System
package Microsoft
Résultat System

ProjectTypeGuids() protected méthode

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
Résultat string