Partager via


IVsTrackProjectDocumentsEvents2.OnAfterRenameDirectories Method

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

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

Syntax

'Déclaration
Function OnAfterRenameDirectories ( _
    cProjects As Integer, _
    cDirs As Integer, _
    rgpProjects As IVsProject(), _
    rgFirstIndices As Integer(), _
    rgszMkOldNames As String(), _
    rgszMkNewNames As String(), _
    rgFlags As VSRENAMEDIRECTORYFLAGS() _
) As Integer
'Utilisation
Dim instance As IVsTrackProjectDocumentsEvents2
Dim cProjects As Integer
Dim cDirs As Integer
Dim rgpProjects As IVsProject()
Dim rgFirstIndices As Integer()
Dim rgszMkOldNames As String()
Dim rgszMkNewNames As String()
Dim rgFlags As VSRENAMEDIRECTORYFLAGS()
Dim returnValue As Integer

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

Parameters

  • cProjects
    Type: System.Int32

    [in] Number of projects with renamed directories.

  • cDirs
    Type: System.Int32

    [in] Number of directories renamed.

  • rgszMkOldNames
    Type: array<System.String[]

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

  • rgszMkNewNames
    Type: array<System.String[]

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

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::OnAfterRenameDirectories(
   [in] int cProjects,
   [in] int cDirs,
   [in, size_is(cProjects)] IVsProject *rgpProjects[],
   [in, size_is(cProjects)] const int rgFirstIndices[],
   [in, size_is(cDirs)] const LPCOLESTR rgszMkOldNames[],
   [in, size_is(cDirs)] const LPCOLESTR rgszMkNewNames[],
   [in, size_is(cDirs)] const VSRENAMEDIRECTORYFLAGS rgflags[]
);

Permissions

See Also

Reference

IVsTrackProjectDocumentsEvents2 Interface

IVsTrackProjectDocumentsEvents2 Members

Microsoft.VisualStudio.Shell.Interop Namespace