C# Класс Meta.MetaPackage

Наследование: Microsoft.VisualStudio.Shell.Package, IVsShellPropertyEvents, IVsSolutionEvents, IVsUpdateSolutionEvents2
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

Build() публичный Метод

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
Результат bool

ClaimBuildState() публичный Метод

public ClaimBuildState ( ) : void
Результат void

ClaimInstantiationState() публичный Метод

public ClaimInstantiationState ( ) : void
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

FreeBuildState() публичный Метод

public FreeBuildState ( ) : void
Результат void

FreeInstantiationState() публичный Метод

public FreeInstantiationState ( ) : void
Результат void

GetBuildOutputPane() публичный Метод

public GetBuildOutputPane ( ) : IVsOutputWindowPane
Результат IVsOutputWindowPane

GetHierarchy() публичный Метод

public GetHierarchy ( System serviceProvider, EnvDTE project ) : IVsHierarchy
serviceProvider System
project EnvDTE
Результат IVsHierarchy

GetOptions() публичный Метод

public GetOptions ( ) : MetaPackage.Options
Результат MetaPackage.Options

GetProfileOutputPane() публичный Метод

public GetProfileOutputPane ( ) : IVsOutputWindowPane
Результат IVsOutputWindowPane

GetSelectedNodes() публичный Метод

Gets the list of selected IVsHierarchy objects
public GetSelectedNodes ( ) : IList
Результат IList

Initialize() защищенный Метод

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
Результат void

IsSolutionBuilding() публичный Метод

public IsSolutionBuilding ( ) : bool
Результат bool

MetaPackage() публичный Метод

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
Результат System

TryClaimBuildState() публичный Метод

public TryClaimBuildState ( ) : bool
Результат bool

TryClaimInstantiationState() публичный Метод

public TryClaimInstantiationState ( ) : bool
Результат bool