IVsTrackProjectDocuments2.OnAfterRemoveDirectories Method

Definition

This method is called by a project after directories have been removed from the project.

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

Parameters

pProject
IVsProject

[in] Project from which the directories have been removed.

cDirectories
Int32

[in] Number of directories that were removed.

rgpszMkDocuments
String[]

[in, size_is(cDirectories)] Array of paths for the directories that were removed.

rgFlags
VSREMOVEDIRECTORYFLAGS[]

[in, size_is(cDirectories)] Array of flags. For a list of rgFlags values, see VSREMOVEDIRECTORYFLAGS.

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::OnAfterRemoveDirectories(  
   [in] IVsProject *pProject,  
   [in] int cDirectories,  
   [in, size_is(cDirectories)] const LPCOLESTR rgpszMkDocuments[],  
   [in, size_is(cDirectories)] const VSREMOVEDIRECTORYFLAGS rgFlags[]  
);  

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

Napomena

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

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