FlavoredProject.IVsTrackProjectDocumentsEvents2.OnAfterRenameDirectories Method
Raised after a directory has 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 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
'Utilizzo
Dim instance As FlavoredProject
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 = CType(instance, IVsTrackProjectDocumentsEvents2).OnAfterRenameDirectories(cProjects, _
cDirs, rgpProjects, rgFirstIndices, _
rgszMkOldNames, rgszMkNewNames, _
rgFlags)
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: System.Int32
The number of projects in the rgpProjects array.
- cDirs
Type: System.Int32
The number of directories affected.
- rgpProjects
Type: array<Microsoft.VisualStudio.Shell.Interop.IVsProject[]
An array of IVsProject objects, corresponding to the projects in the solution.
- rgFirstIndices
Type: array<System.Int32[]
An array of indices of the directories affected.
- rgszMkOldNames
Type: array<System.String[]
An array of the old paths of the directories.
- rgszMkNewNames
Type: array<System.String[]
An array of the new paths of the directories.
- rgFlags
Type: array<Microsoft.VisualStudio.Shell.Interop.VSRENAMEDIRECTORYFLAGS[]
An array of VSRENAMEDIRECTORYFLAGS. May be nulla null reference (Nothing in Visual Basic).
Return Value
Type: System.Int32
S_OK().
Implements
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.