IVsTrackProjectDocuments2::OnAfterRenameFile Method (IVsProject^, String^, String^, VSRENAMEFILEFLAGS)
Visual Studio 2015
This method is called by a project after a file has been renamed in the project.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int OnAfterRenameFile(
IVsProject^ pProject,
String^ pszMkOldName,
String^ pszMkNewName,
VSRENAMEFILEFLAGS flags
)
Parameters
- pProject
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsProject^
[in] Project containing the files that were renamed.
- pszMkOldName
-
Type:
System::String^
[in] Path for the old file.
- pszMkNewName
-
Type:
System::String^
[in] Path for the renamed file.
- flags
-
Type:
Microsoft.VisualStudio.Shell.Interop::VSRENAMEFILEFLAGS
[in] For a list of flags values, see VSRENAMEFILEFLAGS.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From IVsTrackProjectDocuments2.idl
HRESULT IVsTrackProjectDocuments2::OnAfterRenameFile( [in] IVsProject *pProject, [in] LPCOLESTR pszMkOldName, [in] LPCOLESTR pszMkNewName, [in] VSRENAMEFILEFLAGS flags );
The project calls this method after it has renamed a file to notify the environment that the file has been renamed.
Show: