IVsTrackProjectDocumentsEvents2.OnAfterAddFilesEx Method

Definition

This method notifies the client after a project has added files.

public:
 int OnAfterAddFilesEx(int cProjects, int cFiles, cli::array <Microsoft::VisualStudio::Shell::Interop::IVsProject ^> ^ rgpProjects, cli::array <int> ^ rgFirstIndices, cli::array <System::String ^> ^ rgpszMkDocuments, cli::array <Microsoft::VisualStudio::Shell::Interop::VSADDFILEFLAGS> ^ rgFlags);
public:
 int OnAfterAddFilesEx(int cProjects, int cFiles, Platform::Array <Microsoft::VisualStudio::Shell::Interop::IVsProject ^> ^ rgpProjects, Platform::Array <int> ^ rgFirstIndices, Platform::Array <Platform::String ^> ^ rgpszMkDocuments, Platform::Array <Microsoft::VisualStudio::Shell::Interop::VSADDFILEFLAGS> ^ rgFlags);
int OnAfterAddFilesEx(int cProjects, int cFiles, std::Array <Microsoft::VisualStudio::Shell::Interop::IVsProject const &> const & rgpProjects, std::Array <int> const & rgFirstIndices, std::Array <std::wstring const &> const & rgpszMkDocuments, std::Array <Microsoft::VisualStudio::Shell::Interop::VSADDFILEFLAGS> const & rgFlags);
public int OnAfterAddFilesEx (int cProjects, int cFiles, Microsoft.VisualStudio.Shell.Interop.IVsProject[] rgpProjects, int[] rgFirstIndices, string[] rgpszMkDocuments, Microsoft.VisualStudio.Shell.Interop.VSADDFILEFLAGS[] rgFlags);
abstract member OnAfterAddFilesEx : int * int * Microsoft.VisualStudio.Shell.Interop.IVsProject[] * int[] * string[] * Microsoft.VisualStudio.Shell.Interop.VSADDFILEFLAGS[] -> int
Public Function OnAfterAddFilesEx (cProjects As Integer, cFiles As Integer, rgpProjects As IVsProject(), rgFirstIndices As Integer(), rgpszMkDocuments As String(), rgFlags As VSADDFILEFLAGS()) As Integer

Parameters

cProjects
Int32

[in] Number of projects to which files were added.

cFiles
Int32

[in] Number of files that were added.

rgpProjects
IVsProject[]

[in] Array of projects to which files were added.

rgFirstIndices
Int32[]

[in] Array of first indices identifying which project each file belongs to. For more information, see IVsTrackProjectDocumentsEvents2.

rgpszMkDocuments
String[]

[in] Array of paths for the files that were processed. This is the same size as cFiles.

rgFlags
VSADDFILEFLAGS[]

[in] Array of flags. For a list of rgFlags values, see VSADDFILEFLAGS.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From IVsTrackProjectDocumentsEvents2.idl

HRESULT IVsTrackProjectDocumentsEvents2::OnAfterAddFilesEx(  
   [in] int cProjects,  
   [in] int cFiles,  
   [in, size_is(cProjects)] IVsProject *rgpProjects[],  
   [in, size_is(cProjects)] const int rgFirstIndices[],  
   [in, size_is(cFiles)] const LPCOLESTR rgpszMkDocuments[],  
   [in, size_is(cFiles)] const VSADDFILEFLAGS rgFlags[]  
);  

Applies to