Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IComponentChangeService::ComponentRemoving Event

 

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

Namespace:   System.ComponentModel.Design
Assembly:  System (in System.dll)

event ComponentEventHandler^ ComponentRemoving {
	void add(ComponentEventHandler^ value);
	void remove(ComponentEventHandler^ value);
}

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.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft