Delen 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

'Declaration
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
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
)
abstract OnAfterRenameDirectories : 
        cProjects:int * 
        cDirs:int * 
        rgpProjects:IVsProject[] * 
        rgFirstIndices:int[] * 
        rgszMkOldNames:string[] * 
        rgszMkNewNames:string[] * 
        rgFlags:VSRENAMEDIRECTORYFLAGS[] -> int
function OnAfterRenameDirectories(
    cProjects : int, 
    cDirs : int, 
    rgpProjects : IVsProject[], 
    rgFirstIndices : int[], 
    rgszMkOldNames : String[], 
    rgszMkNewNames : String[], 
    rgFlags : VSRENAMEDIRECTORYFLAGS[]
) : int

Parameters

  • cProjects
    Type: Int32

    [in] Number of projects with renamed directories.

  • cDirs
    Type: Int32

    [in] Number of directories renamed.

  • rgFirstIndices
    Type: array<Int32[]

    [in] Array of first indices identifying which project each directory belongs to. For more information, see IVsTrackProjectDocumentsEvents2.

  • rgszMkOldNames
    Type: array<String[]

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

  • rgszMkNewNames
    Type: array<String[]

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

Return Value

Type: 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[]
);

.NET Framework Security

See Also

Reference

IVsTrackProjectDocumentsEvents2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace