IVsCfgProviderEvents.OnCfgNameRenamed Method

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)

Syntax

‘선언
Function OnCfgNameRenamed ( _
    pszOldName As String, _
    lszNewName As String _
) As Integer
‘사용 방법
Dim instance As IVsCfgProviderEvents
Dim pszOldName As String
Dim lszNewName As String
Dim returnValue As Integer

returnValue = instance.OnCfgNameRenamed(pszOldName, _
    lszNewName)
int OnCfgNameRenamed(
    string pszOldName,
    string lszNewName
)
int OnCfgNameRenamed(
    [InAttribute] String^ pszOldName, 
    [InAttribute] String^ lszNewName
)
abstract OnCfgNameRenamed : 
        pszOldName:string * 
        lszNewName:string -> int 
function OnCfgNameRenamed(
    pszOldName : String, 
    lszNewName : String
) : int

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.

Remarks

COM Signature

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.

.NET Framework Security

See Also

Reference

IVsCfgProviderEvents Interface

IVsCfgProviderEvents Members

Microsoft.VisualStudio.Shell.Interop Namespace