Compartir a través de


ChangeNotificationService.RenameElement Method

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
public virtual bool RenameElement(
    CodeElement element,
    string newName
)
public:
virtual bool RenameElement(
    CodeElement^ element, 
    String^ newName
)
abstract RenameElement : 
        element:CodeElement * 
        newName:string -> bool  
override RenameElement : 
        element:CodeElement * 
        newName:string -> bool
public function RenameElement(
    element : CodeElement, 
    newName : String
) : boolean

Parameters

  • newName
    Type: String

    The new proposed name.

Return Value

Type: 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

See Also

Reference

ChangeNotificationService Class

Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom Namespace