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
'宣告
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
'用途
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
)
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: System.Int32
[in] Number of projects with renamed directories.
- cDirs
Type: System.Int32
[in] Number of directories renamed.
- rgpProjects
Type: array<Microsoft.VisualStudio.Shell.Interop.IVsProject[]
[in] Array of projects from which directories were renamed.
- rgFirstIndices
Type: array<System.Int32[]
[in] Array of first indices identifying which project each directory belongs to. For more information, see IVsTrackProjectDocumentsEvents2.
- 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.
- rgFlags
Type: array<Microsoft.VisualStudio.Shell.Interop.VSRENAMEDIRECTORYFLAGS[]
[in] Array of flags. For a list of rgFlags values, see VSRENAMEDIRECTORYFLAGS.
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[]
);
.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.
See Also
Reference
IVsTrackProjectDocumentsEvents2 Interface