ChangeNotificationService::RenameElement Method (CodeElement^, String^)

 

Renames the element

Namespace:   Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

public:
virtual bool RenameElement(
	CodeElement^ element,
	String^ newName
)

Parameters

element
Type: EnvDTE::CodeElement^

An instance of a CodeElement.

newName
Type: System::String^

The new proposed name.

Return Value

Type: System::Boolean

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

By default this method does nothing and returns false.

Return to top
Show: