This documentation is archived and is not being maintained.

IComponentChangeService.ComponentRemoving Event

Occurs when a component is in the process of being removed.

[Visual Basic]
Event ComponentRemoving As ComponentEventHandler
event ComponentEventHandler ComponentRemoving;
__event ComponentEventHandler* ComponentRemoving;

[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 ComponentEventArgs containing data related to this event. The following ComponentEventArgs property provides information specific to this event.

Property Description
Component Gets the component associated with the event.


This event occurs during unload and when the user deletes a component. You can cancel the process of removing a component by throwing an exception here.


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 | ComponentRemoved | ComponentEventHandler