Condividi tramite


FlavoredProject.IVsTrackProjectDocumentsEvents2.OnAfterRenameFiles Method

Raised after files have been moved or renamed.

Namespace:  Microsoft.VisualStudio.Shell.Flavor
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'Dichiarazione
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
'Utilizzo
Dim instance As FlavoredProject
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 = CType(instance, IVsTrackProjectDocumentsEvents2).OnAfterRenameFiles(cProjects, _
    cFiles, rgpProjects, rgFirstIndices, _
    rgszMkOldNames, rgszMkNewNames, _
    rgFlags)
int IVsTrackProjectDocumentsEvents2.OnAfterRenameFiles(
    int cProjects,
    int cFiles,
    IVsProject[] rgpProjects,
    int[] rgFirstIndices,
    string[] rgszMkOldNames,
    string[] rgszMkNewNames,
    VSRENAMEFILEFLAGS[] rgFlags
)
private:
virtual int OnAfterRenameFiles(
    int cProjects, 
    int cFiles, 
    array<IVsProject^>^ rgpProjects, 
    array<int>^ rgFirstIndices, 
    array<String^>^ rgszMkOldNames, 
    array<String^>^ rgszMkNewNames, 
    array<VSRENAMEFILEFLAGS>^ rgFlags
) sealed = IVsTrackProjectDocumentsEvents2::OnAfterRenameFiles
private abstract OnAfterRenameFiles : 
        cProjects:int * 
        cFiles:int * 
        rgpProjects:IVsProject[] * 
        rgFirstIndices:int[] * 
        rgszMkOldNames:string[] * 
        rgszMkNewNames:string[] * 
        rgFlags:VSRENAMEFILEFLAGS[] -> int 
private override OnAfterRenameFiles : 
        cProjects:int * 
        cFiles:int * 
        rgpProjects:IVsProject[] * 
        rgFirstIndices:int[] * 
        rgszMkOldNames:string[] * 
        rgszMkNewNames:string[] * 
        rgFlags:VSRENAMEFILEFLAGS[] -> int 
JScript does not support explicit interface implementations.

Parameters

  • cProjects
    Type: System.Int32
    The number of projects in the rgpProjects array. 
  • rgFirstIndices
    Type: array<System.Int32[]
    An array of the indices of the files.
  • rgszMkOldNames
    Type: array<System.String[]
    An array of the old paths of the files.
  • rgszMkNewNames
    Type: array<System.String[]
    An array of the new paths of the files.

Return Value

Type: System.Int32
S_OK().

Implements

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

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

FlavoredProject Members

Microsoft.VisualStudio.Shell.Flavor Namespace