Partilhar via


IVsTrackProjectDocuments2.OnAfterRenameFiles Method

Definition

This method is called by a project after files have been renamed in the project.

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

Parameters

pProject
IVsProject

[in] Project containing the files that were renamed.

cFiles
Int32

[in] Number of files that were renamed.

rgszMkOldNames
String[]

[in] Array of paths for the old files' names.

rgszMkNewNames
String[]

[in] Array of paths for the new files' names.

rgFlags
VSRENAMEFILEFLAGS[]

[in] For a list of rgflags values, see VSRENAMEFILEFLAGS.

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::OnAfterRenameFiles(  
   [in] IVsProject *pProject,  
   [in] int cFiles,  
   [in, size_is(cFiles)] const LPCOLESTR rgszMkOldNames[],  
   [in, size_is(cFiles)] const LPCOLESTR rgszMkNewNames[],  
   [in, size_is(cFiles)] const VSRENAMEFILEFLAGS rgflags[]  
);  

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

Applies to