Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This method is called by a project after files have been renamed in the project.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function OnAfterRenameFiles ( _
pProject As IVsProject, _
cFiles As Integer, _
rgszMkOldNames As String(), _
rgszMkNewNames As String(), _
rgFlags As VSRENAMEFILEFLAGS() _
) As Integer
int OnAfterRenameFiles(
IVsProject pProject,
int cFiles,
string[] rgszMkOldNames,
string[] rgszMkNewNames,
VSRENAMEFILEFLAGS[] rgFlags
)
int OnAfterRenameFiles(
[InAttribute] IVsProject^ pProject,
[InAttribute] int cFiles,
[InAttribute] array<String^>^ rgszMkOldNames,
[InAttribute] array<String^>^ rgszMkNewNames,
[InAttribute] array<VSRENAMEFILEFLAGS>^ rgFlags
)
abstract OnAfterRenameFiles :
pProject:IVsProject *
cFiles:int *
rgszMkOldNames:string[] *
rgszMkNewNames:string[] *
rgFlags:VSRENAMEFILEFLAGS[] -> int
function OnAfterRenameFiles(
pProject : IVsProject,
cFiles : int,
rgszMkOldNames : String[],
rgszMkNewNames : String[],
rgFlags : VSRENAMEFILEFLAGS[]
) : int
Parameters
- pProject
Type: Microsoft.VisualStudio.Shell.Interop.IVsProject
[in] Project containing the files that were renamed.
- cFiles
Type: System.Int32
[in] Number of files that were renamed.
- rgszMkOldNames
Type: array<System.String[]
[in] Array of paths for the old files' names.
- rgszMkNewNames
Type: array<System.String[]
[in] Array of paths for the new files' names.
- rgFlags
Type: array<Microsoft.VisualStudio.Shell.Interop.VSRENAMEFILEFLAGS[]
[in] 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 IVsTrackProjectDocuments2.idl
HRESULT IVsTrackProjectDocuments2::OnAfterRenameFiles(
[in] IVsProject *pProject,
[in] int cFiles,
[in, size_is(cFiles)] const LPCOLESTR rgszMkOldNames[],
[in, size_is(cFiles)] const LPCOLESTR rgszMkNewNames[],
[in, size_is(cFiles)] const VSRENAMEFILEFLAGS rgflags[]
);
The project calls this method after it has renamed files to notify the environment that the files have been renamed.
.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.