FlavoredProject.IVsTrackProjectDocumentsEvents2.OnAfterRenameFiles 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在移动或重命名文件后引发。
virtual int Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnAfterRenameFiles(int cProjects, int cFiles, cli::array <Microsoft::VisualStudio::Shell::Interop::IVsProject ^> ^ rgpProjects, cli::array <int> ^ rgFirstIndices, cli::array <System::String ^> ^ rgszMkOldNames, cli::array <System::String ^> ^ rgszMkNewNames, cli::array <Microsoft::VisualStudio::Shell::Interop::VSRENAMEFILEFLAGS> ^ rgFlags) = Microsoft::VisualStudio::Shell::Interop::IVsTrackProjectDocumentsEvents2::OnAfterRenameFiles;
virtual int Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnAfterRenameFiles(int cProjects, int cFiles, Platform::Array <Microsoft::VisualStudio::Shell::Interop::IVsProject ^> ^ rgpProjects, Platform::Array <int> ^ rgFirstIndices, Platform::Array <Platform::String ^> ^ rgszMkOldNames, Platform::Array <Platform::String ^> ^ rgszMkNewNames, Platform::Array <Microsoft::VisualStudio::Shell::Interop::VSRENAMEFILEFLAGS> ^ rgFlags) = Microsoft::VisualStudio::Shell::Interop::IVsTrackProjectDocumentsEvents2::OnAfterRenameFiles;
int Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnAfterRenameFiles(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 & rgszMkOldNames, std::Array <std::wstring const &> const & rgszMkNewNames, std::Array <Microsoft::VisualStudio::Shell::Interop::VSRENAMEFILEFLAGS> const & rgFlags);
int IVsTrackProjectDocumentsEvents2.OnAfterRenameFiles (int cProjects, int cFiles, Microsoft.VisualStudio.Shell.Interop.IVsProject[] rgpProjects, int[] rgFirstIndices, string[] rgszMkOldNames, string[] rgszMkNewNames, Microsoft.VisualStudio.Shell.Interop.VSRENAMEFILEFLAGS[] rgFlags);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnAfterRenameFiles : int * int * Microsoft.VisualStudio.Shell.Interop.IVsProject[] * int[] * string[] * string[] * Microsoft.VisualStudio.Shell.Interop.VSRENAMEFILEFLAGS[] -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnAfterRenameFiles : int * int * Microsoft.VisualStudio.Shell.Interop.IVsProject[] * int[] * string[] * string[] * Microsoft.VisualStudio.Shell.Interop.VSRENAMEFILEFLAGS[] -> int
Function OnAfterRenameFiles (cProjects As Integer, cFiles As Integer, rgpProjects As IVsProject(), rgFirstIndices As Integer(), rgszMkOldNames As String(), rgszMkNewNames As String(), rgFlags As VSRENAMEFILEFLAGS()) As Integer Implements IVsTrackProjectDocumentsEvents2.OnAfterRenameFiles
参数
- cProjects
- Int32
数组中的项目数 rgpProjects 。
- cFiles
- Int32
受影响的文件数。
- rgpProjects
- IVsProject[]
对象的数组 IVsProject ,对应于解决方案中的项目。
- rgFirstIndices
- Int32[]
文件的索引的数组。
- rgszMkOldNames
- String[]
文件的旧路径的数组。
- rgszMkNewNames
- String[]
文件的新路径的数组。
- rgFlags
- VSRENAMEFILEFLAGS[]
一个 VSRENAMEFILEFLAGS 数组。 可为 null。
返回
Microsoft.VisualStudio.NativeMethods.S_OK.
实现
注解
筛选事件,以便只报告与此项目相关的事件。 这不是 flavoring 所必需的,但它可以简化在订阅这些事件时派生类必须执行的工作。