Renames the element
Namespace: Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'Declaration
Public Overridable Function RenameElement ( _
element As CodeElement, _
newName As String _
) As Boolean
'Usage
Dim instance As ChangeNotificationService
Dim element As CodeElement
Dim newName As String
Dim returnValue As Boolean
returnValue = instance.RenameElement(element, _
newName)
public virtual bool RenameElement(
CodeElement element,
string newName
)
public:
virtual bool RenameElement(
CodeElement^ element,
String^ newName
)
public function RenameElement(
element : CodeElement,
newName : String
) : boolean
Parameters
element
Type: EnvDTE.CodeElementAn instance of a CodeElement.
newName
Type: System.StringThe new proposed name.
Return Value
Type: System.Boolean
When implemented by derived classes, true if it was possible to rename the element, otherwise false.
Remarks
By default this method does nothing and returns false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ChangeNotificationService Class
ChangeNotificationService Members
Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom Namespace