Share via


IVsEditorFactoryNotify.NotifyItemRenamed Method

Definition

Method called when a file is renamed.

public:
 int NotifyItemRenamed(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, System::UInt32 itemid, System::String ^ pszMkDocumentOld, System::String ^ pszMkDocumentNew);
public:
 int NotifyItemRenamed(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, unsigned int itemid, Platform::String ^ pszMkDocumentOld, Platform::String ^ pszMkDocumentNew);
int NotifyItemRenamed(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHier, unsigned int itemid, std::wstring const & pszMkDocumentOld, std::wstring const & pszMkDocumentNew);
public int NotifyItemRenamed (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHier, uint itemid, string pszMkDocumentOld, string pszMkDocumentNew);
abstract member NotifyItemRenamed : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 * string * string -> int
Public Function NotifyItemRenamed (pHier As IVsHierarchy, itemid As UInteger, pszMkDocumentOld As String, pszMkDocumentNew As String) As Integer

Parameters

pHier
IVsHierarchy

[in] Pointer to the IVsHierarchy for the renamed item.

itemid
UInt32

[in] The item ID (VSITEMID) of the file.

pszMkDocumentOld
String

[in] Pointer to a string containing the old name.

pszMkDocumentNew
String

[in] Pointer to a string containing the new name.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsEditorFactoryNotify::NotifyItemRenamed(  
   in] IVsHierarchy *pHier,   
   [in] VSITEMID itemid,   
   [in] LPCOLESTR pszMkDocumentOld,   
   [in] LPCOLESTR pszMkDocumentNew  
);  

Applies to