Partager via


IVsProjectFileReloadManagerEvents.OnQueryAdditionalFilesToBeClosedBeforeProjectsReloaded Method

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.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.12.1.DesignTime (in Microsoft.VisualStudio.Shell.Interop.12.1.DesignTime.dll)

Syntax

'Declaration
Function OnQueryAdditionalFilesToBeClosedBeforeProjectsReloaded ( _
    cProjectsToBeReloaded As Integer, _
    rgProjectsToBeReloaded As Guid() _
) As Array
Array OnQueryAdditionalFilesToBeClosedBeforeProjectsReloaded(
    int cProjectsToBeReloaded,
    Guid[] rgProjectsToBeReloaded
)
Array^ OnQueryAdditionalFilesToBeClosedBeforeProjectsReloaded(
    [InAttribute] int cProjectsToBeReloaded, 
    [InAttribute] array<Guid>^ rgProjectsToBeReloaded
)
abstract OnQueryAdditionalFilesToBeClosedBeforeProjectsReloaded : 
        cProjectsToBeReloaded:int * 
        rgProjectsToBeReloaded:Guid[] -> Array
function OnQueryAdditionalFilesToBeClosedBeforeProjectsReloaded(
    cProjectsToBeReloaded : int, 
    rgProjectsToBeReloaded : Guid[]
) : Array

Parameters

  • cProjectsToBeReloaded
    Type: Int32

    The number of projects to be reloaded.

  • rgProjectsToBeReloaded
    Type: array<Guid[]

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

Return Value

Type: Array
An array of the names of files to be closed.

.NET Framework Security

See Also

Reference

IVsProjectFileReloadManagerEvents Interface

Microsoft.VisualStudio.Shell.Interop Namespace