Compartilhar via


IVsTrackProjectDocumentsEvents2.OnAfterRemoveFiles Method

Definition

This method notifies the client after files are removed from the project.

public:
 int OnAfterRemoveFiles(int cProjects, int cFiles, cli::array <Microsoft::VisualStudio::Shell::Interop::IVsProject ^> ^ rgpProjects, cli::array <int> ^ rgFirstIndices, cli::array <System::String ^> ^ rgpszMkDocuments, cli::array <Microsoft::VisualStudio::Shell::Interop::VSREMOVEFILEFLAGS> ^ rgFlags);
public:
 int OnAfterRemoveFiles(int cProjects, int cFiles, Platform::Array <Microsoft::VisualStudio::Shell::Interop::IVsProject ^> ^ rgpProjects, Platform::Array <int> ^ rgFirstIndices, Platform::Array <Platform::String ^> ^ rgpszMkDocuments, Platform::Array <Microsoft::VisualStudio::Shell::Interop::VSREMOVEFILEFLAGS> ^ rgFlags);
int OnAfterRemoveFiles(int cProjects, int cFiles, 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::VSREMOVEFILEFLAGS> const & rgFlags);
public int OnAfterRemoveFiles (int cProjects, int cFiles, Microsoft.VisualStudio.Shell.Interop.IVsProject[] rgpProjects, int[] rgFirstIndices, string[] rgpszMkDocuments, Microsoft.VisualStudio.Shell.Interop.VSREMOVEFILEFLAGS[] rgFlags);
abstract member OnAfterRemoveFiles : int * int * Microsoft.VisualStudio.Shell.Interop.IVsProject[] * int[] * string[] * Microsoft.VisualStudio.Shell.Interop.VSREMOVEFILEFLAGS[] -> int
Public Function OnAfterRemoveFiles (cProjects As Integer, cFiles As Integer, rgpProjects As IVsProject(), rgFirstIndices As Integer(), rgpszMkDocuments As String(), rgFlags As VSREMOVEFILEFLAGS()) As Integer

Parameters

cProjects
Int32

[in] Number of projects from which files were removed.

cFiles
Int32

[in] Number of files removed.

rgpProjects
IVsProject[]

[in] Array of projects from which files were removed.

rgFirstIndices
Int32[]

[in] Array of first indices identifying which project each file belongs to. For more information, see IVsTrackProjectDocumentsEvents2.

rgpszMkDocuments
String[]

[in] Array of paths for the files that were removed.

rgFlags
VSREMOVEFILEFLAGS[]

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

Returns

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

Remarks

COM Signature

From IVsTrackProjectDocumentsEvents2.idl

HRESULT IVsTrackProjectDocumentsEvents2::OnAfterRemoveFiles(  
   [in] int cProjects,  
   [in] int cFiles,  
   [in, size_is(cProjects)] IVsProject *rgpProjects[],  
   [in, size_is(cProjects)] const int rgFirstIndices[],  
   [in, size_is(cFiles)] const LPCOLESTR rgpszMkDocuments[],  
   [in, size_is(cFiles)] const VSREMOVEFILEFLAGS rgFlags[]  
);  

Applies to