IVsTrackProjectDocuments2::OnAfterRenameFiles Method (IVsProject^, Int32, array<String^>^, array<String^>^, array<VSRENAMEFILEFLAGS>^)

 

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

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int OnAfterRenameFiles(
	IVsProject^ pProject,
	int cFiles,
	array<String^>^ rgszMkOldNames,
	array<String^>^ rgszMkNewNames,
	array<VSRENAMEFILEFLAGS>^ rgFlags
)

Parameters

pProject
Type: Microsoft.VisualStudio.Shell.Interop::IVsProject^

[in] Project containing the files that were renamed.

cFiles
Type: System::Int32

[in] Number of files that were renamed.

rgszMkOldNames
Type: array<System::String^>^

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

rgszMkNewNames
Type: array<System::String^>^

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

rgFlags
Type: array<Microsoft.VisualStudio.Shell.Interop::VSRENAMEFILEFLAGS>^

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

Return Value

Type: System::Int32

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

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.

Return to top
Show: