Partager via


IVsTrackProjectDocuments2.OnAfterAddDirectories Method

This method is called by a project after directories have been added to the project.

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

Syntax

'Déclaration
Function OnAfterAddDirectories ( _
    pProject As IVsProject, _
    cDirectories As Integer, _
    rgpszMkDocuments As String() _
) As Integer
'Utilisation
Dim instance As IVsTrackProjectDocuments2
Dim pProject As IVsProject
Dim cDirectories As Integer
Dim rgpszMkDocuments As String()
Dim returnValue As Integer

returnValue = instance.OnAfterAddDirectories(pProject, _
    cDirectories, rgpszMkDocuments)
int OnAfterAddDirectories(
    IVsProject pProject,
    int cDirectories,
    string[] rgpszMkDocuments
)
int OnAfterAddDirectories(
    [InAttribute] IVsProject^ pProject, 
    [InAttribute] int cDirectories, 
    [InAttribute] array<String^>^ rgpszMkDocuments
)
abstract OnAfterAddDirectories : 
        pProject:IVsProject * 
        cDirectories:int * 
        rgpszMkDocuments:string[] -> int 
function OnAfterAddDirectories(
    pProject : IVsProject, 
    cDirectories : int, 
    rgpszMkDocuments : String[]
) : int

Parameters

  • cDirectories
    Type: System.Int32
    [in] Number of directories that were added.
  • rgpszMkDocuments
    Type: array<System.String[]
    [in, size_is(cDirectories)] Array of paths for the directories that were added. This is the same size as cFiles.

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 IVsTrackProjectDocuments2.idl

HRESULT IVsTrackProjectDocuments2::OnAfterAddDirectories(
   [in] IVsProject *pProject,
   [in] int cDirectories,
   [in, size_is(cDirectories)] const LPCOLESTR rgpszMkDocuments[]
);

The project calls this method after it has added directories to notify the environment that the directories have been added.

Notes

All directory calls are optional. However, if you call one of the OnQuery* directory methods, then you are required to call the corresponding OnAfter* directory method if the OnQuery* call was successful.

.NET Framework Security

See Also

Reference

IVsTrackProjectDocuments2 Interface

IVsTrackProjectDocuments2 Members

Microsoft.VisualStudio.Shell.Interop Namespace