Sdílet prostřednictvím


IVsTrackProjectDocuments2.OnAfterAddDirectoriesEx Method

Definition

This method is called by a project after directories have been added to the project. This method is equivalent to OnAfterAddDirectories(IVsProject, Int32, String[]), but it also takes flags.

public:
 int OnAfterAddDirectoriesEx(Microsoft::VisualStudio::Shell::Interop::IVsProject ^ pProject, int cDirectories, cli::array <System::String ^> ^ rgpszMkDocuments, cli::array <Microsoft::VisualStudio::Shell::Interop::VSADDDIRECTORYFLAGS> ^ rgFlags);
public:
 int OnAfterAddDirectoriesEx(Microsoft::VisualStudio::Shell::Interop::IVsProject ^ pProject, int cDirectories, Platform::Array <Platform::String ^> ^ rgpszMkDocuments, Platform::Array <Microsoft::VisualStudio::Shell::Interop::VSADDDIRECTORYFLAGS> ^ rgFlags);
int OnAfterAddDirectoriesEx(Microsoft::VisualStudio::Shell::Interop::IVsProject const & pProject, int cDirectories, std::Array <std::wstring const &> const & rgpszMkDocuments, std::Array <Microsoft::VisualStudio::Shell::Interop::VSADDDIRECTORYFLAGS> const & rgFlags);
public int OnAfterAddDirectoriesEx (Microsoft.VisualStudio.Shell.Interop.IVsProject pProject, int cDirectories, string[] rgpszMkDocuments, Microsoft.VisualStudio.Shell.Interop.VSADDDIRECTORYFLAGS[] rgFlags);
abstract member OnAfterAddDirectoriesEx : Microsoft.VisualStudio.Shell.Interop.IVsProject * int * string[] * Microsoft.VisualStudio.Shell.Interop.VSADDDIRECTORYFLAGS[] -> int
Public Function OnAfterAddDirectoriesEx (pProject As IVsProject, cDirectories As Integer, rgpszMkDocuments As String(), rgFlags As VSADDDIRECTORYFLAGS()) As Integer

Parameters

pProject
IVsProject

[in] Project for which the directories have been added.

cDirectories
Int32

[in] Number of directories that were added.

rgpszMkDocuments
String[]

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

rgFlags
VSADDDIRECTORYFLAGS[]

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

Returns

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

Remarks

COM Signature

From IVsTrackProjectDocuments2.idl

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

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

Note

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.

Applies to