Share via


FlavoredProject.IVsTrackProjectDocumentsEvents2.OnAfterAddFilesEx Method

Raised after files have been added to a project.

Namespace:  Microsoft.VisualStudio.Shell.Flavor
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Private Function OnAfterAddFilesEx ( _
    cProjects As Integer, _
    cFiles As Integer, _
    rgpProjects As IVsProject(), _
    rgFirstIndices As Integer(), _
    rgpszMkDocuments As String(), _
    rgFlags As VSADDFILEFLAGS() _
) As Integer Implements IVsTrackProjectDocumentsEvents2.OnAfterAddFilesEx
int IVsTrackProjectDocumentsEvents2.OnAfterAddFilesEx(
    int cProjects,
    int cFiles,
    IVsProject[] rgpProjects,
    int[] rgFirstIndices,
    string[] rgpszMkDocuments,
    VSADDFILEFLAGS[] rgFlags
)
private:
virtual int OnAfterAddFilesEx(
    int cProjects, 
    int cFiles, 
    array<IVsProject^>^ rgpProjects, 
    array<int>^ rgFirstIndices, 
    array<String^>^ rgpszMkDocuments, 
    array<VSADDFILEFLAGS>^ rgFlags
) sealed = IVsTrackProjectDocumentsEvents2::OnAfterAddFilesEx
private abstract OnAfterAddFilesEx : 
        cProjects:int * 
        cFiles:int * 
        rgpProjects:IVsProject[] * 
        rgFirstIndices:int[] * 
        rgpszMkDocuments:string[] * 
        rgFlags:VSADDFILEFLAGS[] -> int  
private override OnAfterAddFilesEx : 
        cProjects:int * 
        cFiles:int * 
        rgpProjects:IVsProject[] * 
        rgFirstIndices:int[] * 
        rgpszMkDocuments:string[] * 
        rgFlags:VSADDFILEFLAGS[] -> int
JScript does not support explicit interface implementations.

Parameters

  • cProjects
    Type: Int32

    The number of projects in the rgpProjects array.

  • cFiles
    Type: Int32

    The number of files to be added.

  • rgFirstIndices
    Type: array<Int32[]

    An array of indices of the files that were affected.

  • rgpszMkDocuments
    Type: array<String[]

    An array of paths of the files that were affected.

Return Value

Type: Int32
S_OK.

Implements

IVsTrackProjectDocumentsEvents2.OnAfterAddFilesEx(Int32, Int32, array<IVsProject[], array<Int32[], array<String[], array<VSADDFILEFLAGS[])

Remarks

Events are filtered so that they report only those related to this project. This is not required for flavoring, but it simplifies the work the derived classes have to do when subscribing to these events.

.NET Framework Security

See Also

Reference

FlavoredProject Class

Microsoft.VisualStudio.Shell.Flavor Namespace