C# Class Meta.MetaPackage

Inheritance: Microsoft.VisualStudio.Shell.Package, IVsShellPropertyEvents, IVsSolutionEvents, IVsUpdateSolutionEvents2
Afficher le fichier Open project: brandon-kohn/Meta Class Usage Examples

Méthodes publiques

Méthode Description
Build ( IVsHierarchy hierarchy, string targets, ICollection loggers, bool onlyProject = true, bool isDesignTimeBuild = true, bool NeedsUIThread = true, bool async = true ) : bool
ClaimBuildState ( ) : void
ClaimInstantiationState ( ) : void
Dispose ( ) : void
FreeBuildState ( ) : void
FreeInstantiationState ( ) : void
GetBuildOutputPane ( ) : IVsOutputWindowPane
GetHierarchy ( System serviceProvider, EnvDTE project ) : IVsHierarchy
GetOptions ( ) : MetaPackage.Options
GetProfileOutputPane ( ) : IVsOutputWindowPane
GetSelectedNodes ( ) : IList

Gets the list of selected IVsHierarchy objects

IsSolutionBuilding ( ) : bool
MetaPackage ( ) : System

Default constructor of the package. Inside this method you can place any initialization code that does not require any Visual Studio service because at this point the package object is created but not sited yet inside Visual Studio environment. The place to do all the other initialization is the Initialize method.

TryClaimBuildState ( ) : bool
TryClaimInstantiationState ( ) : bool

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
Initialize ( ) : void

Initialization of the package; this method is called right after the package is sited, so this is the place where you can put all the initialization code that rely on services provided by VisualStudio.

Private Methods

Méthode Description
BuildProfileCallback ( object sender, EventArgs e ) : void

This function is the callback used to execute a command when the a menu item is clicked. See the Initialize method to see how the menu item is associated to this function using the OleMenuCommandService service and the MenuCommand class.

CancelBuild ( ) : void
CleanProject ( IVsHierarchy hierarchy, bool async = false ) : void
GenerateBoostBuildFileCallback ( object sender, EventArgs e ) : void

IVsShellPropertyEvents ( int propid, object var ) : int
IVsSolutionEvents ( IVsHierarchy pStubHierarchy, IVsHierarchy pRealHierarchy ) : int
IVsSolutionEvents ( IVsHierarchy pHierarchy, int fAdded ) : int
IVsSolutionEvents ( IVsHierarchy pHierarchy, int fRemoving, int &pfCancel ) : int
IVsSolutionEvents ( object pUnkReserved ) : int
IVsSolutionEvents ( object pUnkReserved, int fNewSolution ) : int
IVsUpdateSolutionEvents ( ) : int
IVsUpdateSolutionEvents ( IVsHierarchy pIVsHierarchy ) : int
IVsUpdateSolutionEvents ( int &pfCancelUpdate ) : int
IVsUpdateSolutionEvents ( int fSucceeded, int fModified, int fCancelCommand ) : int
IVsUpdateSolutionEvents2 ( ) : int
IVsUpdateSolutionEvents2 ( IVsHierarchy pIVsHierarchy ) : int
IVsUpdateSolutionEvents2 ( IVsHierarchy pHierProj, IVsCfg pCfgProj, IVsCfg pCfgSln, uint dwAction, int &pfCancel ) : int
IVsUpdateSolutionEvents2 ( IVsHierarchy pHierProj, IVsCfg pCfgProj, IVsCfg pCfgSln, uint dwAction, int fSuccess, int fCancel ) : int
IVsUpdateSolutionEvents2 ( int &pfCancelUpdate ) : int
IVsUpdateSolutionEvents2 ( int fSucceeded, int fModified, int fCancelCommand ) : int
TemplateProfileCallback ( object sender, EventArgs e ) : void
uiContex1Cmd_BeforeQueryStatus ( object sender, EventArgs e ) : void
uiContex2Cmd_BeforeQueryStatus ( object sender, EventArgs e ) : void
uiContex3Cmd_BeforeQueryStatus ( object sender, EventArgs e ) : void

Method Details

Build() public méthode

public Build ( IVsHierarchy hierarchy, string targets, ICollection loggers, bool onlyProject = true, bool isDesignTimeBuild = true, bool NeedsUIThread = true, bool async = true ) : bool
hierarchy IVsHierarchy
targets string
loggers ICollection
onlyProject bool
isDesignTimeBuild bool
NeedsUIThread bool
async bool
Résultat bool

ClaimBuildState() public méthode

public ClaimBuildState ( ) : void
Résultat void

ClaimInstantiationState() public méthode

public ClaimInstantiationState ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

FreeBuildState() public méthode

public FreeBuildState ( ) : void
Résultat void

FreeInstantiationState() public méthode

public FreeInstantiationState ( ) : void
Résultat void

GetBuildOutputPane() public méthode

public GetBuildOutputPane ( ) : IVsOutputWindowPane
Résultat IVsOutputWindowPane

GetHierarchy() public méthode

public GetHierarchy ( System serviceProvider, EnvDTE project ) : IVsHierarchy
serviceProvider System
project EnvDTE
Résultat IVsHierarchy

GetOptions() public méthode

public GetOptions ( ) : MetaPackage.Options
Résultat MetaPackage.Options

GetProfileOutputPane() public méthode

public GetProfileOutputPane ( ) : IVsOutputWindowPane
Résultat IVsOutputWindowPane

GetSelectedNodes() public méthode

Gets the list of selected IVsHierarchy objects
public GetSelectedNodes ( ) : IList
Résultat IList

Initialize() protected méthode

Initialization of the package; this method is called right after the package is sited, so this is the place where you can put all the initialization code that rely on services provided by VisualStudio.
protected Initialize ( ) : void
Résultat void

IsSolutionBuilding() public méthode

public IsSolutionBuilding ( ) : bool
Résultat bool

MetaPackage() public méthode

Default constructor of the package. Inside this method you can place any initialization code that does not require any Visual Studio service because at this point the package object is created but not sited yet inside Visual Studio environment. The place to do all the other initialization is the Initialize method.
public MetaPackage ( ) : System
Résultat System

TryClaimBuildState() public méthode

public TryClaimBuildState ( ) : bool
Résultat bool

TryClaimInstantiationState() public méthode

public TryClaimInstantiationState ( ) : bool
Résultat bool