IVsProjectFileReloadManagerEvents.OnQueryAdditionalFilesToBeClosedBeforeProjectsReloaded Method

Definition

Occurs before unloaded projects are reloaded by the user. The implementer of this event sink is expected to return the list of additional files that need to be closed before the projects can be reloaded. The unloaded projects' project files are already known to be closed and need not be included in the list that is returned by this method. The implementer does not need to look the files up in the Running Document Table to see if they are actually open. Visual Studio makes sure that the files are actually open in an editor (i.e. not registered in the RDT with the RDT_ProjSlnDocument flag set). These additional files are typically files imported or included by the unloaded project files that must be available in order for the reloading projects to open.

public:
 Array ^ OnQueryAdditionalFilesToBeClosedBeforeProjectsReloaded(int cProjectsToBeReloaded, cli::array <Guid> ^ rgProjectsToBeReloaded);
public Array OnQueryAdditionalFilesToBeClosedBeforeProjectsReloaded (int cProjectsToBeReloaded, Guid[] rgProjectsToBeReloaded);
abstract member OnQueryAdditionalFilesToBeClosedBeforeProjectsReloaded : int * Guid[] -> Array
Public Function OnQueryAdditionalFilesToBeClosedBeforeProjectsReloaded (cProjectsToBeReloaded As Integer, rgProjectsToBeReloaded As Guid()) As Array

Parameters

cProjectsToBeReloaded
Int32

The number of projects to be reloaded.

rgProjectsToBeReloaded
Guid[]

An array of ProjectID GUIDs of unloaded projects to be reloaded.

Returns

An array of the names of files to be closed.

Applies to