IVsCfgProviderEvents::OnCfgNameRenamed Method (String^, String^)
Visual Studio 2015
Notifies the environment when a configuration name has been renamed.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- pszOldName
-
Type:
System::String^
[in] Pointer to the original name of the configuration.
- lszNewName
-
Type:
System::String^
[in] Pointer to the new name of the configuration.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsCfgProviderEvents::OnCfgNameRenamed( [in] LPCOLESTR pszOldName, [in] LPCOLESTR lszNewName );
If the configuration object renames configurations with a clone operation following by a delete operation, it will generate add and delete events rather than a rename event. That is, OnCfgNameAdded will be called following OnCfgNameDeleted instead of this method.
Show: