Udostępnij za pośrednictwem


IVsContainedLanguageCodeSupport.OnRenamed Method

Definition

Called from a containing IVsContainedLanguageHost object indicating that a rename of a specified type was initiated.

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 specifying what is being renamed.

bstrOldID
String

[in] The old name.

bstrNewID
String

[in] The new name.

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  
);  

This method is typically called from the OnRenamed method in the IVsContainedLanguageHost interface that is in turn called from the contained language service if a member name was renamed.

Applies to