Compartir a través de


FlavoredProject.IVsTrackProjectDocumentsEvents2.OnAfterRenameDirectories Method

Raised after a directory has been moved or renamed.

Namespace:  Microsoft.VisualStudio.Shell.Flavor
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Private 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 Implements IVsTrackProjectDocumentsEvents2.OnAfterRenameDirectories
int IVsTrackProjectDocumentsEvents2.OnAfterRenameDirectories(
    int cProjects,
    int cDirs,
    IVsProject[] rgpProjects,
    int[] rgFirstIndices,
    string[] rgszMkOldNames,
    string[] rgszMkNewNames,
    VSRENAMEDIRECTORYFLAGS[] rgFlags
)
private:
virtual int OnAfterRenameDirectories(
    int cProjects, 
    int cDirs, 
    array<IVsProject^>^ rgpProjects, 
    array<int>^ rgFirstIndices, 
    array<String^>^ rgszMkOldNames, 
    array<String^>^ rgszMkNewNames, 
    array<VSRENAMEDIRECTORYFLAGS>^ rgFlags
) sealed = IVsTrackProjectDocumentsEvents2::OnAfterRenameDirectories
private abstract OnAfterRenameDirectories : 
        cProjects:int * 
        cDirs:int * 
        rgpProjects:IVsProject[] * 
        rgFirstIndices:int[] * 
        rgszMkOldNames:string[] * 
        rgszMkNewNames:string[] * 
        rgFlags:VSRENAMEDIRECTORYFLAGS[] -> int  
private override OnAfterRenameDirectories : 
        cProjects:int * 
        cDirs:int * 
        rgpProjects:IVsProject[] * 
        rgFirstIndices:int[] * 
        rgszMkOldNames:string[] * 
        rgszMkNewNames:string[] * 
        rgFlags:VSRENAMEDIRECTORYFLAGS[] -> int
JScript does not support explicit interface implementations.

Parameters

  • cProjects
    Type: Int32

    The number of projects in the rgpProjects array. 

  • cDirs
    Type: Int32

    The number of directories affected.

  • rgFirstIndices
    Type: array<Int32[]

    An array of indices of the directories affected.

  • rgszMkOldNames
    Type: array<String[]

    An array of the old paths of the directories.

  • rgszMkNewNames
    Type: array<String[]

    An array of the new paths of the directories.

Return Value

Type: Int32
S_OK.

Implements

IVsTrackProjectDocumentsEvents2.OnAfterRenameDirectories(Int32, Int32, array<IVsProject[], array<Int32[], array<String[], array<String[], array<VSRENAMEDIRECTORYFLAGS[])

Remarks

Events are filtered so that they report only those related to this project. This is not required for flavoring, but it simplifies the work the derived classes have to do when subscribing to these events.

.NET Framework Security

See Also

Reference

FlavoredProject Class

Microsoft.VisualStudio.Shell.Flavor Namespace