IVsCfgProviderEvents::OnCfgNameRenamed Method (String^, String^)

 

Notifies the environment when a configuration name has been renamed.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int OnCfgNameRenamed(
	String^ pszOldName,
	String^ lszNewName
)

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::Int32

If 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.

Return to top
Show: