IVsEditorFactoryNotify::NotifyItemRenamed Method (IVsHierarchy^, UInt32, String^, String^)
Visual Studio 2015
Method called when a file is renamed.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int NotifyItemRenamed( IVsHierarchy^ pHier, unsigned int itemid, String^ pszMkDocumentOld, String^ pszMkDocumentNew )
Parameters
- pHier
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^
[in] Pointer to the IVsHierarchy for the renamed item.
- itemid
-
Type:
System::UInt32
[in] The item ID (VSITEMID) of the file.
- pszMkDocumentOld
-
Type:
System::String^
[in] Pointer to a string containing the old name.
- pszMkDocumentNew
-
Type:
System::String^
[in] Pointer to a string containing the new name.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsEditorFactoryNotify::NotifyItemRenamed( in] IVsHierarchy *pHier, [in] VSITEMID itemid, [in] LPCOLESTR pszMkDocumentOld, [in] LPCOLESTR pszMkDocumentNew );
Show: