FlavoredProject.IVsTrackProjectDocumentsEvents2.OnAfterRenameFiles 方法

引发,在文件已移动或重命名后。

命名空间:  Microsoft.VisualStudio.Shell.Flavor
程序集:  Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)

语法

声明
Private 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
int IVsTrackProjectDocumentsEvents2.OnAfterRenameFiles(
    int cProjects,
    int cFiles,
    IVsProject[] rgpProjects,
    int[] rgFirstIndices,
    string[] rgszMkOldNames,
    string[] rgszMkNewNames,
    VSRENAMEFILEFLAGS[] rgFlags
)

参数

  • cProjects
    类型:System.Int32
    的项数。 rgpProjects 数组。 
  • rgFirstIndices
    类型:array<System.Int32[]
    文件的索引的数组。
  • rgszMkOldNames
    类型:array<System.String[]
    文件的旧路径的数组。
  • rgszMkNewNames
    类型:array<System.String[]
    文件的新路径的数组。

返回值

类型:System.Int32
S_OK .

实现

IVsTrackProjectDocumentsEvents2.OnAfterRenameFiles(Int32, Int32, array<IVsProject[], array<Int32[], array<String[], array<String[], array<VSRENAMEFILEFLAGS[])

备注

操作筛选器,以便仅报告在与此项目相关。这对于调味,这是必需的,但简化了派生类必须完成,如果订阅这些事件中工作。

.NET Framework 安全性

请参见

参考

FlavoredProject 类

Microsoft.VisualStudio.Shell.Flavor 命名空间