Share via


ChangeNotificationService.RenameElement(CodeElement, String) Method

Definition

Renames the element

public:
 virtual bool RenameElement(EnvDTE::CodeElement ^ element, System::String ^ newName);
public:
 virtual bool RenameElement(EnvDTE::CodeElement ^ element, Platform::String ^ newName);
 virtual bool RenameElement(EnvDTE::CodeElement const & element, std::wstring const & newName);
public virtual bool RenameElement (EnvDTE.CodeElement element, string newName);
abstract member RenameElement : EnvDTE.CodeElement * string -> bool
override this.RenameElement : EnvDTE.CodeElement * string -> bool
Public Overridable Function RenameElement (element As CodeElement, newName As String) As Boolean

Parameters

element
CodeElement

An instance of a CodeElement.

newName
String

The new proposed name.

Returns

When implemented by derived classes, true if it was possible to rename the element, otherwise false.

Applies to