共用方式為


FlavoredProject.IVsTrackProjectDocumentsEvents2.OnAfterRemoveDirectories Method

Definition

Raised after a directory was removed from the project.

 virtual int Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnAfterRemoveDirectories(int cProjects, int cDirectories, cli::array <Microsoft::VisualStudio::Shell::Interop::IVsProject ^> ^ rgpProjects, cli::array <int> ^ rgFirstIndices, cli::array <System::String ^> ^ rgpszMkDocuments, cli::array <Microsoft::VisualStudio::Shell::Interop::VSREMOVEDIRECTORYFLAGS> ^ rgFlags) = Microsoft::VisualStudio::Shell::Interop::IVsTrackProjectDocumentsEvents2::OnAfterRemoveDirectories;
 virtual int Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnAfterRemoveDirectories(int cProjects, int cDirectories, Platform::Array <Microsoft::VisualStudio::Shell::Interop::IVsProject ^> ^ rgpProjects, Platform::Array <int> ^ rgFirstIndices, Platform::Array <Platform::String ^> ^ rgpszMkDocuments, Platform::Array <Microsoft::VisualStudio::Shell::Interop::VSREMOVEDIRECTORYFLAGS> ^ rgFlags) = Microsoft::VisualStudio::Shell::Interop::IVsTrackProjectDocumentsEvents2::OnAfterRemoveDirectories;
int Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnAfterRemoveDirectories(int cProjects, int cDirectories, 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::VSREMOVEDIRECTORYFLAGS> const & rgFlags);
int IVsTrackProjectDocumentsEvents2.OnAfterRemoveDirectories (int cProjects, int cDirectories, Microsoft.VisualStudio.Shell.Interop.IVsProject[] rgpProjects, int[] rgFirstIndices, string[] rgpszMkDocuments, Microsoft.VisualStudio.Shell.Interop.VSREMOVEDIRECTORYFLAGS[] rgFlags);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnAfterRemoveDirectories : int * int * Microsoft.VisualStudio.Shell.Interop.IVsProject[] * int[] * string[] * Microsoft.VisualStudio.Shell.Interop.VSREMOVEDIRECTORYFLAGS[] -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnAfterRemoveDirectories : int * int * Microsoft.VisualStudio.Shell.Interop.IVsProject[] * int[] * string[] * Microsoft.VisualStudio.Shell.Interop.VSREMOVEDIRECTORYFLAGS[] -> int
Function OnAfterRemoveDirectories (cProjects As Integer, cDirectories As Integer, rgpProjects As IVsProject(), rgFirstIndices As Integer(), rgpszMkDocuments As String(), rgFlags As VSREMOVEDIRECTORYFLAGS()) As Integer Implements IVsTrackProjectDocumentsEvents2.OnAfterRemoveDirectories

Parameters

cProjects
Int32

The number of projects in the rgpProjects array.

cDirectories
Int32

The number of directories affected.

rgpProjects
IVsProject[]

An array of IVsProject objects, corresponding to the projects in the solution.

rgFirstIndices
Int32[]

An array of indices of the directories that were affected.

rgpszMkDocuments
String[]

An array of paths of the directories that were affected.

rgFlags
VSREMOVEDIRECTORYFLAGS[]

An array of VSREMOVEDIRECTORYFLAGS. May be null.

Returns

Microsoft.VisualStudio.NativeMethods.S_OK.

Implements

Remarks

Events are filtered so that they report only those related to this project. This is not required for flavoring, but it simplifies the work the derived classes have to do when subscribing to these events.

Applies to