IVsEditorFactoryNotify::NotifyItemRenamed Method (IVsHierarchy^, UInt32, String^, String^)

 

Method called when a file is renamed.

Namespace:   Microsoft.VisualStudio.Shell.Interop
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::Int32

If 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
);
Return to top
Show: