Partager via


IVsRefactorNotify.OnGlobalSymbolRenamed Method

Definition

Called after a symbol is renamed.

public:
 int OnGlobalSymbolRenamed(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, System::UInt32 itemid, System::UInt32 cRQNames, cli::array <System::String ^> ^ rglpszRQName, System::String ^ lpszNewName);
public:
 int OnGlobalSymbolRenamed(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, unsigned int itemid, unsigned int cRQNames, Platform::Array <Platform::String ^> ^ rglpszRQName, Platform::String ^ lpszNewName);
int OnGlobalSymbolRenamed(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHier, unsigned int itemid, unsigned int cRQNames, std::Array <std::wstring const &> const & rglpszRQName, std::wstring const & lpszNewName);
public int OnGlobalSymbolRenamed (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHier, uint itemid, uint cRQNames, string[] rglpszRQName, string lpszNewName);
abstract member OnGlobalSymbolRenamed : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 * uint32 * string[] * string -> int
Public Function OnGlobalSymbolRenamed (pHier As IVsHierarchy, itemid As UInteger, cRQNames As UInteger, rglpszRQName As String(), lpszNewName As String) As Integer

Parameters

pHier
IVsHierarchy

A hierarchy of the designer-owned item associated with the file that the language service changed.

itemid
UInt32

The VSITEMID of the designer-owned item associated with the file that the language service changed.

cRQNames
UInt32

The number of the renamed symbols. The number can be greater than one, if an overloaded symbol is renamed.

rglpszRQName
String[]

A name of the symbol before the rename.

lpszNewName
String

A name of the symbol after the rename.

Returns

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

Remarks

COM Signature

From vsshell80.idl:

HRESULT OnGlobalSymbolRenamed(  
    [in] IVsHierarchy *pHier,  
    [in] VSITEMID itemid,  
    [in] ULONG cRQNames,  
    [in, size_is(cRQNames)] LPCOLESTR rglpszRQName[],  
    [in] LPCOLESTR lpszNewName);  

Applies to