IVsTrackProjectDocuments2.OnAfterAddFilesEx Method

Definition

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

C++/CX
public:
 int OnAfterAddFilesEx(Microsoft::VisualStudio::Shell::Interop::IVsProject ^ pProject, int cFiles, Platform::Array <Platform::String ^> ^ rgpszMkDocuments, Platform::Array <Microsoft::VisualStudio::Shell::Interop::VSADDFILEFLAGS> ^ rgFlags);

Parameters

pProject
IVsProject

[in] Project to which the files have been added.

cFiles
Int32

[in] Number of files that were added.

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

cpp#
HRESULT IVsTrackProjectDocuments2::OnAfterAddFilesEx(  
   [in] IVsProject *pProject,  
   [in] int cFiles,  
   [in, size_is(cFiles)] const LPCOLESTR rgpszMkDocuments[],  
   [in, size_is(cFiles)] const VSADDFILEFLAGS rgFlags[]  
);  

The project must call this method after it has added files to notify the environment that the files have been added. Unlike OnAfterAddFiles, this method allows you to specify a unique flag for each file.

Applies to

Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022