Share via


IVsCfgProviderEventsHelper.NotifyOnCfgNameRenamed(String, String) Method

Definition

Fired to sink configuration name renamed events for all listeners in the array.

public:
 int NotifyOnCfgNameRenamed(System::String ^ pszOldName, System::String ^ lszNewName);
public:
 int NotifyOnCfgNameRenamed(Platform::String ^ pszOldName, Platform::String ^ lszNewName);
int NotifyOnCfgNameRenamed(std::wstring const & pszOldName, std::wstring const & lszNewName);
public int NotifyOnCfgNameRenamed (string pszOldName, string lszNewName);
abstract member NotifyOnCfgNameRenamed : string * string -> int
Public Function NotifyOnCfgNameRenamed (pszOldName As String, lszNewName As String) As Integer

Parameters

pszOldName
String

[in] Old configuration name removed from the configuration list.

lszNewName
String

[in] New configuration name added to the configuration list.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsCfgProviderEventsHelper::NotifyOnCfgNameRenamed(  
   [in] LPCOLESTR pszOldName,  
   [in] LPCOLESTR lszNewName  
);  

If the rename operation is implemented as a clone and delete, you should fire the add/delete events instead of this one.

Applies to