IVsTrackProjectDocumentsEvents2.OnAfterRenameFiles Method
This method notifies the client when files have been renamed in the project.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
声明
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
用法
Dim instance As IVsTrackProjectDocumentsEvents2
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 = instance.OnAfterRenameFiles(cProjects, _
cFiles, rgpProjects, rgFirstIndices, _
rgszMkOldNames, rgszMkNewNames, _
rgFlags)
int OnAfterRenameFiles(
int cProjects,
int cFiles,
IVsProject[] rgpProjects,
int[] rgFirstIndices,
string[] rgszMkOldNames,
string[] rgszMkNewNames,
VSRENAMEFILEFLAGS[] rgFlags
)
int OnAfterRenameFiles(
[InAttribute] int cProjects,
[InAttribute] int cFiles,
[InAttribute] array<IVsProject^>^ rgpProjects,
[InAttribute] array<int>^ rgFirstIndices,
[InAttribute] array<String^>^ rgszMkOldNames,
[InAttribute] array<String^>^ rgszMkNewNames,
[InAttribute] array<VSRENAMEFILEFLAGS>^ rgFlags
)
abstract OnAfterRenameFiles :
cProjects:int *
cFiles:int *
rgpProjects:IVsProject[] *
rgFirstIndices:int[] *
rgszMkOldNames:string[] *
rgszMkNewNames:string[] *
rgFlags:VSRENAMEFILEFLAGS[] -> int
function OnAfterRenameFiles(
cProjects : int,
cFiles : int,
rgpProjects : IVsProject[],
rgFirstIndices : int[],
rgszMkOldNames : String[],
rgszMkNewNames : String[],
rgFlags : VSRENAMEFILEFLAGS[]
) : int
Parameters
- cProjects
Type: System.Int32
[in] Number of projects in which files have been renamed.
- cFiles
Type: System.Int32
[in] Number of files renamed.
- rgpProjects
Type: array<Microsoft.VisualStudio.Shell.Interop.IVsProject[]
[in] Array of projects in which files were renamed.
- rgFirstIndices
Type: array<System.Int32[]
[in] Array of first indices identifying which project each file belongs to. For more information, see IVsTrackProjectDocumentsEvents2.
- rgszMkOldNames
Type: array<System.String[]
[in] Array of paths for the old file names.
- rgszMkNewNames
Type: array<System.String[]
[in] Array of paths for the new file names.
- rgFlags
Type: array<Microsoft.VisualStudio.Shell.Interop.VSRENAMEFILEFLAGS[]
[in] Array of flags. For a list of rgFlags values, see VSRENAMEFILEFLAGS.
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::OnAfterRenameFiles(
[in] int cProjects,
[in] int cFiles,
[in, size_is(cProjects)] IVsProject *rgpProjects[],
[in, size_is(cProjects)] const int rgFirstIndices[],
[in, size_is(cFiles)] const LPCOLESTR rgszMkOldNames[],
[in, size_is(cFiles)] const LPCOLESTR rgszMkNewNames[],
[in, size_is(cFiles)] const VSRENAMEFILEFLAGS 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