IVsContainedLanguageHost.OnRenamed Method

Definition

Called to notify the editor that a name has been changed.

public:
 int OnRenamed(Microsoft::VisualStudio::TextManager::Interop::ContainedLanguageRenameType clrt, System::String ^ bstrOldID, System::String ^ bstrNewID);
public:
 int OnRenamed(Microsoft::VisualStudio::TextManager::Interop::ContainedLanguageRenameType clrt, Platform::String ^ bstrOldID, Platform::String ^ bstrNewID);
int OnRenamed(Microsoft::VisualStudio::TextManager::Interop::ContainedLanguageRenameType clrt, std::wstring const & bstrOldID, std::wstring const & bstrNewID);
public int OnRenamed (Microsoft.VisualStudio.TextManager.Interop.ContainedLanguageRenameType clrt, string bstrOldID, string bstrNewID);
abstract member OnRenamed : Microsoft.VisualStudio.TextManager.Interop.ContainedLanguageRenameType * string * string -> int
Public Function OnRenamed (clrt As ContainedLanguageRenameType, bstrOldID As String, bstrNewID As String) As Integer

Parameters

clrt
ContainedLanguageRenameType

[in] A value from the ContainedLanguageRenameType enumeration indicating what type of name was changed.

bstrOldID
String

[in] The fully qualified old name. For example, "MyNamespace.MyClass.MyMethod".

bstrNewID
String

[in] The fully qualified new name. For example, "MyNamespace.MyClass.MyNewMethod".

Returns

If successful, returns S_OK; otherwise, returns an error code.

Remarks

COM Signature

From singlefileeditor.idl:

HRESULT OnRenamed(  
   [in] ContainedLanguageRenameType clrt,  
   [in] BSTR                        bstrOldID,  
   [in] BSTR                        bstrNewID  
);  

Applies to