C# Class Microsoft.VisualStudio.Project.UpdateSolutionEventsListener

Inheritance: IVsUpdateSolutionEvents3, IVsUpdateSolutionEvents2, IDisposable
Mostra file Open project: tunnelvisionlabs/MPFProj10

Public Methods

Method Description
Dispose ( ) : void

The IDispose interface Dispose method for disposing the object deterministically.

OnActiveProjectCfgChange ( IVsHierarchy hierarchy ) : int

Called when the active project configuration for a project in the solution has changed.

OnAfterActiveSolutionCfgChange ( IVsCfg oldActiveSlnCfg, IVsCfg newActiveSlnCfg ) : int

Fired after the active solution configuration is changed (oldActiveSlnCfg can be ).

OnBeforeActiveSolutionCfgChange ( IVsCfg oldActiveSlnCfg, IVsCfg newActiveSlnCfg ) : int

Fired before the active solution configuration is changed (oldActiveSlnCfg can be ).

UpdateProjectCfg_Begin ( IVsHierarchy hierarchy, IVsCfg configProject, IVsCfg configSolution, uint action, int &cancel ) : int

Called right before a project configuration begins to build.

The values for the action are defined in the enum _SLNUPDACTION env\msenv\core\slnupd2.h

UpdateProjectCfg_Done ( IVsHierarchy hierarchy, IVsCfg configProject, IVsCfg configSolution, uint action, int success, int cancel ) : int

Called right after a project configuration is finished building.

The values for the action are defined in the enum _SLNUPDACTION env\msenv\core\slnupd2.h

UpdateSolution_Begin ( int &cancelUpdate ) : int

Called before any build actions have begun. This is the last chance to cancel the build before any building begins.

UpdateSolution_Cancel ( ) : int

Called when a build is being canceled.

UpdateSolution_Done ( int fSucceeded, int fModified, int fCancelCommand ) : int

Called when a build is completed.

UpdateSolution_StartUpdate ( int &pfCancelUpdate ) : int

Called before the first project configuration is about to be built.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

The method that does the cleanup.

UpdateSolutionEventsListener ( System.IServiceProvider serviceProvider ) : System

Overloaded constructor.

Method Details

Dispose() public method

The IDispose interface Dispose method for disposing the object deterministically.
public Dispose ( ) : void
return void

Dispose() protected method

The method that does the cleanup.
protected Dispose ( bool disposing ) : void
disposing bool true if called from IDispose.Dispose; false if called from Finalizer.
return void

OnActiveProjectCfgChange() public method

Called when the active project configuration for a project in the solution has changed.
public OnActiveProjectCfgChange ( IVsHierarchy hierarchy ) : int
hierarchy IVsHierarchy The project whose configuration has changed.
return int

OnAfterActiveSolutionCfgChange() public method

Fired after the active solution configuration is changed (oldActiveSlnCfg can be ).
public OnAfterActiveSolutionCfgChange ( IVsCfg oldActiveSlnCfg, IVsCfg newActiveSlnCfg ) : int
oldActiveSlnCfg IVsCfg Old configuration.
newActiveSlnCfg IVsCfg New configuration.
return int

OnBeforeActiveSolutionCfgChange() public method

Fired before the active solution configuration is changed (oldActiveSlnCfg can be ).
public OnBeforeActiveSolutionCfgChange ( IVsCfg oldActiveSlnCfg, IVsCfg newActiveSlnCfg ) : int
oldActiveSlnCfg IVsCfg Old configuration.
newActiveSlnCfg IVsCfg New configuration.
return int

UpdateProjectCfg_Begin() public method

Called right before a project configuration begins to build.
The values for the action are defined in the enum _SLNUPDACTION env\msenv\core\slnupd2.h
public UpdateProjectCfg_Begin ( IVsHierarchy hierarchy, IVsCfg configProject, IVsCfg configSolution, uint action, int &cancel ) : int
hierarchy IVsHierarchy The project that is to be build.
configProject IVsCfg A configuration project object.
configSolution IVsCfg A configuration solution object.
action uint The action taken.
cancel int A flag indicating cancel.
return int

UpdateProjectCfg_Done() public method

Called right after a project configuration is finished building.
The values for the action are defined in the enum _SLNUPDACTION env\msenv\core\slnupd2.h
public UpdateProjectCfg_Done ( IVsHierarchy hierarchy, IVsCfg configProject, IVsCfg configSolution, uint action, int success, int cancel ) : int
hierarchy IVsHierarchy The project that has finished building.
configProject IVsCfg A configuration project object.
configSolution IVsCfg A configuration solution object.
action uint The action taken.
success int Flag indicating success.
cancel int Flag indicating cancel.
return int

UpdateSolutionEventsListener() protected method

Overloaded constructor.
protected UpdateSolutionEventsListener ( System.IServiceProvider serviceProvider ) : System
serviceProvider System.IServiceProvider A service provider.
return System

UpdateSolution_Begin() public method

Called before any build actions have begun. This is the last chance to cancel the build before any building begins.
public UpdateSolution_Begin ( int &cancelUpdate ) : int
cancelUpdate int Flag indicating cancel update.
return int

UpdateSolution_Cancel() public method

Called when a build is being canceled.
public UpdateSolution_Cancel ( ) : int
return int

UpdateSolution_Done() public method

Called when a build is completed.
public UpdateSolution_Done ( int fSucceeded, int fModified, int fCancelCommand ) : int
fSucceeded int Non-zero if no update actions failed.
fModified int Non-zero if any update action succeeded.
fCancelCommand int Non-Zero if update actions were canceled.
return int

UpdateSolution_StartUpdate() public method

Called before the first project configuration is about to be built.
public UpdateSolution_StartUpdate ( int &pfCancelUpdate ) : int
pfCancelUpdate int A flag indicating cancel update.
return int