IVsTrackProjectDocumentsEvents2.OnAfterRenameFiles Method

This method notifies the client when files have been renamed in the project.

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

Syntax

'Declaration
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
'Usage
Dim instance As IVsTrackProjectDocumentsEvents2 
Dim cProjects As Integer 
Dim cFiles As Integer 
Dim rgpProjects As IVsProject()
Dim rgFirstIndices As Integer()
Dim rgszMkOldNames As String()
Dim rgszMkNewNames As String()
Dim rgFlags As VSRENAMEFILEFLAGS()
Dim returnValue As Integer 

returnValue = instance.OnAfterRenameFiles(cProjects, _
    cFiles, rgpProjects, rgFirstIndices, _
    rgszMkOldNames, rgszMkNewNames, _
    rgFlags)
int OnAfterRenameFiles(
    int cProjects,
    int cFiles,
    IVsProject[] rgpProjects,
    int[] rgFirstIndices,
    string[] rgszMkOldNames,
    string[] rgszMkNewNames,
    VSRENAMEFILEFLAGS[] rgFlags
)
int OnAfterRenameFiles(
    [InAttribute] int cProjects, 
    [InAttribute] int cFiles, 
    [InAttribute] array<IVsProject^>^ rgpProjects, 
    [InAttribute] array<int>^ rgFirstIndices, 
    [InAttribute] array<String^>^ rgszMkOldNames, 
    [InAttribute] array<String^>^ rgszMkNewNames, 
    [InAttribute] array<VSRENAMEFILEFLAGS>^ rgFlags
)
function OnAfterRenameFiles(
    cProjects : int, 
    cFiles : int, 
    rgpProjects : IVsProject[], 
    rgFirstIndices : int[], 
    rgszMkOldNames : String[], 
    rgszMkNewNames : String[], 
    rgFlags : VSRENAMEFILEFLAGS[]
) : int

Parameters

  • cProjects
    Type: System.Int32

    [in] Number of projects in which files have been renamed.

  • rgszMkOldNames
    Type: array<System.String[]

    [in] Array of paths for the old file names.

  • rgszMkNewNames
    Type: array<System.String[]

    [in] Array of paths for the new file names.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From IVsTrackProjectDocumentsEvents2.idl

HRESULT IVsTrackProjectDocumentsEvents2::OnAfterRenameFiles(
   [in] int cProjects,
   [in] int cFiles,
   [in, size_is(cProjects)] IVsProject *rgpProjects[],
   [in, size_is(cProjects)] const int rgFirstIndices[],
   [in, size_is(cFiles)] const LPCOLESTR rgszMkOldNames[],
   [in, size_is(cFiles)] const LPCOLESTR rgszMkNewNames[],
   [in, size_is(cFiles)] const VSRENAMEFILEFLAGS rgflags[]
);

.NET Framework Security

See Also

Reference

IVsTrackProjectDocumentsEvents2 Interface

IVsTrackProjectDocumentsEvents2 Members

Microsoft.VisualStudio.Shell.Interop Namespace