IVsTrackProjectDocuments4.OnQueryRemoveDirectoriesEx Method

Definition

Called by a project to determine whether directories can be removed from the project.

C++/CX
public:
 int OnQueryRemoveDirectoriesEx(Microsoft::VisualStudio::Shell::Interop::IVsProject ^ pProject, int cDirectories, Platform::Array <Platform::String ^> ^ rgpszMkDocuments, Platform::Array <unsigned int> ^ rgFlags, Platform::Array <Microsoft::VisualStudio::Shell::Interop::VSQUERYREMOVEDIRECTORYRESULTS> ^ pSummaryResult, Platform::Array <Microsoft::VisualStudio::Shell::Interop::VSQUERYREMOVEDIRECTORYRESULTS> ^ rgResults);

Parameters

pProject
IVsProject

[in] Project containing the directories to remove.

cDirectories
Int32

[in] Number of directories to remove.

rgpszMkDocuments
String[]

[in, size_is(cDirectories)] Array of paths for the directories to remove.

rgFlags
UInt32[]

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

pSummaryResult
VSQUERYREMOVEDIRECTORYRESULTS[]

[out] Summary result object. This object is a summation of the yes and no results for the array of directories passed in rgpszMkDocuments. If the result for a single directory is no, then this parameter is equal to VSQUERYREMOVEDIRECTORYRESULTS_RemoveNotOK; if the results for all files are yes, then this parameter is equal to VSQUERYREMOVEDIRECTORYRESULTS_RemoveOK. For a list of pSummaryResult values, see VSQUERYREMOVEDIRECTORYRESULTS.

rgResults
VSQUERYREMOVEDIRECTORYRESULTS[]

[out, size_is(cDirectories)] Array of results. If you pass in a null reference for this parameter, then only the summary result is returned (pSummaryResult). For a list of rgResults values, see VSQUERYREMOVEDIRECTORYRESULTS.

Returns

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

Applies to

製品 バージョン
Visual Studio SDK 2015, 2017, 2019, 2022