ChangeNotificationService.RenameElement(CodeElement, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.