Condividi tramite


IVsTrackProjectDocumentsEvents2.OnAfterAddDirectoriesEx Method

This method notifies the client after directories are added to the project.

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

Syntax

'Dichiarazione
Function OnAfterAddDirectoriesEx ( _
    cProjects As Integer, _
    cDirectories As Integer, _
    rgpProjects As IVsProject(), _
    rgFirstIndices As Integer(), _
    rgpszMkDocuments As String(), _
    rgFlags As VSADDDIRECTORYFLAGS() _
) As Integer
'Utilizzo
Dim instance As IVsTrackProjectDocumentsEvents2
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 = instance.OnAfterAddDirectoriesEx(cProjects, _
    cDirectories, rgpProjects, rgFirstIndices, _
    rgpszMkDocuments, rgFlags)
int OnAfterAddDirectoriesEx(
    int cProjects,
    int cDirectories,
    IVsProject[] rgpProjects,
    int[] rgFirstIndices,
    string[] rgpszMkDocuments,
    VSADDDIRECTORYFLAGS[] rgFlags
)
int OnAfterAddDirectoriesEx(
    [InAttribute] int cProjects, 
    [InAttribute] int cDirectories, 
    [InAttribute] array<IVsProject^>^ rgpProjects, 
    [InAttribute] array<int>^ rgFirstIndices, 
    [InAttribute] array<String^>^ rgpszMkDocuments, 
    [InAttribute] array<VSADDDIRECTORYFLAGS>^ rgFlags
)
abstract OnAfterAddDirectoriesEx : 
        cProjects:int * 
        cDirectories:int * 
        rgpProjects:IVsProject[] * 
        rgFirstIndices:int[] * 
        rgpszMkDocuments:string[] * 
        rgFlags:VSADDDIRECTORYFLAGS[] -> int 
function OnAfterAddDirectoriesEx(
    cProjects : int, 
    cDirectories : int, 
    rgpProjects : IVsProject[], 
    rgFirstIndices : int[], 
    rgpszMkDocuments : String[], 
    rgFlags : VSADDDIRECTORYFLAGS[]
) : int

Parameters

  • cProjects
    Type: System.Int32
    [in] Number of projects to which directories were added.
  • cDirectories
    Type: System.Int32
    [in] Number of directories added.
  • rgpszMkDocuments
    Type: array<System.String[]
    [in] Array of paths for the directories that were added. This is the same size as cDirectories.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From IVsTrackProjectDocumentsEvents2.idl

HRESULT IVsTrackProjectDocumentsEvents2::OnAfterAddDirectoriesEx(
   [in] int cProjects,
   [in] int cDirectories,
   [in, size_is(cProjects)] IVsProject *rgpProjects[],
   [in, size_is(cProjects)] const int rgFirstIndices[],
   [in, size_is(cDirectories)] const LPCOLESTR rgpszMkDocuments[],
   [in, size_is(cDirectories)] const VSADDDIRECTORYFLAGS rgFlags[]
);

.NET Framework Security

See Also

Reference

IVsTrackProjectDocumentsEvents2 Interface

IVsTrackProjectDocumentsEvents2 Members

Microsoft.VisualStudio.Shell.Interop Namespace