Export (0) Print
Expand All

IComponentChangeService.ComponentRename Event

Occurs when a component is renamed.

[Visual Basic]
Event ComponentRename As ComponentRenameEventHandler
[C#]
event ComponentRenameEventHandler ComponentRename;
[C++]
__event ComponentRenameEventHandler* ComponentRename;

[JScript] In JScript, you can handle the events defined by a class, but you cannot define your own.

Event Data

The event handler receives an argument of type ComponentRenameEventArgs containing data related to this event. The following ComponentRenameEventArgs properties provide information specific to this event.

Property Description
Component Gets the component that is being renamed.
NewName Gets the name of the component after the rename event.
OldName Gets the name of the component before the rename event.

Remarks

This event occurs after the ComponentChanged event when a component has been renamed.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

IComponentChangeService Interface | IComponentChangeService Members | System.ComponentModel.Design Namespace | ComponentRenameEventHandler

Show:
© 2014 Microsoft