Condividi tramite


FlavoredProject.IVsTrackProjectDocumentsEvents2.OnAfterAddDirectoriesEx Method

Raised after directories have been added to a project.

Namespace:  Microsoft.VisualStudio.Shell.Flavor
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'Dichiarazione
Private Function OnAfterAddDirectoriesEx ( _
    cProjects As Integer, _
    cDirectories As Integer, _
    rgpProjects As IVsProject(), _
    rgFirstIndices As Integer(), _
    rgpszMkDocuments As String(), _
    rgFlags As VSADDDIRECTORYFLAGS() _
) As Integer Implements IVsTrackProjectDocumentsEvents2.OnAfterAddDirectoriesEx
'Utilizzo
Dim instance As FlavoredProject
Dim cProjects As Integer
Dim cDirectories As Integer
Dim rgpProjects As IVsProject()
Dim rgFirstIndices As Integer()
Dim rgpszMkDocuments As String()
Dim rgFlags As VSADDDIRECTORYFLAGS()
Dim returnValue As Integer

returnValue = CType(instance, IVsTrackProjectDocumentsEvents2).OnAfterAddDirectoriesEx(cProjects, _
    cDirectories, rgpProjects, rgFirstIndices, _
    rgpszMkDocuments, rgFlags)
int IVsTrackProjectDocumentsEvents2.OnAfterAddDirectoriesEx(
    int cProjects,
    int cDirectories,
    IVsProject[] rgpProjects,
    int[] rgFirstIndices,
    string[] rgpszMkDocuments,
    VSADDDIRECTORYFLAGS[] rgFlags
)
private:
virtual int OnAfterAddDirectoriesEx(
    int cProjects, 
    int cDirectories, 
    array<IVsProject^>^ rgpProjects, 
    array<int>^ rgFirstIndices, 
    array<String^>^ rgpszMkDocuments, 
    array<VSADDDIRECTORYFLAGS>^ rgFlags
) sealed = IVsTrackProjectDocumentsEvents2::OnAfterAddDirectoriesEx
private abstract OnAfterAddDirectoriesEx : 
        cProjects:int * 
        cDirectories:int * 
        rgpProjects:IVsProject[] * 
        rgFirstIndices:int[] * 
        rgpszMkDocuments:string[] * 
        rgFlags:VSADDDIRECTORYFLAGS[] -> int 
private override OnAfterAddDirectoriesEx : 
        cProjects:int * 
        cDirectories:int * 
        rgpProjects:IVsProject[] * 
        rgFirstIndices:int[] * 
        rgpszMkDocuments:string[] * 
        rgFlags:VSADDDIRECTORYFLAGS[] -> int 
JScript does not support explicit interface implementations.

Parameters

  • cProjects
    Type: System.Int32
    The number of projects in the rgpProjects array.
  • cDirectories
    Type: System.Int32
    The number of directories to be added.
  • rgFirstIndices
    Type: array<System.Int32[]
    An array of indices of the directories that were affected.
  • rgpszMkDocuments
    Type: array<System.String[]
    An array of paths of the directories that were added.

Return Value

Type: System.Int32
S_OK().

Implements

IVsTrackProjectDocumentsEvents2.OnAfterAddDirectoriesEx(Int32, Int32, array<IVsProject[], array<Int32[], array<String[], array<VSADDDIRECTORYFLAGS[])

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

FlavoredProject Members

Microsoft.VisualStudio.Shell.Flavor Namespace