IVsContainedLanguageHost::OnRenamed Method (ContainedLanguageRenameType, String^, String^)

 

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

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

int OnRenamed(
	ContainedLanguageRenameType clrt,
	String^ bstrOldID,
	String^ bstrNewID
)

Parameters

clrt
Type: Microsoft.VisualStudio.TextManager.Interop::ContainedLanguageRenameType

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

bstrOldID
Type: System::String^

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

bstrNewID
Type: System::String^

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

Return Value

Type: System::Int32

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

From singlefileeditor.idl:

HRESULT OnRenamed(
   [in] ContainedLanguageRenameType clrt,
   [in] BSTR                        bstrOldID,
   [in] BSTR                        bstrNewID
);
Return to top
Show: