Udostępnij za pośrednictwem


IVsTrackProjectDocuments2.OnAfterRemoveFiles Method

Definition

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

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

Parameters

pProject
IVsProject

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

cFiles
Int32

[in] Number of files that were removed.

rgpszMkDocuments
String[]

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

rgFlags
VSREMOVEFILEFLAGS[]

[in, size_is(cFiles)] 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 IVsTrackProjectDocuments2.idl

HRESULT IVsTrackProjectDocuments2::OnAfterRemoveFiles(  
   [in] IVsProject *pProject,  
   [in] int cFiles,  
   [in, size_is(cFiles)] const LPCOLESTR rgpszMkDocuments[],  
   [in, size_is(cFiles)] const VSREMOVEFILEFLAGS rgFlags[]  
);  

The project must call this method after it has removed files to notify the environment that the files have been removed.

Applies to