Provides data for the IComponentChangeService.ComponentChanging event. This class cannot be inherited.
See Also: ComponentChangingEventArgs Members
System.ComponentModel.Design.ComponentChangingEventArgs provides data about a IComponentChangeService.ComponentChanging event. The IComponentChangeService.ComponentChanging event notifies the System.ComponentModel.Design.IComponentChangeService and registered event handlers that a particular component in the current design document is about to be changed. This event provides a widely accessible method to prevent a component from changing.
A IComponentChangeService.ComponentChanging event is raised before a component is changed. This event provides an opportunity for a designer to abort the change. Component designers typically raise the IComponentChangeService.ComponentChanging event automatically. If a property cannot be changed, the method that handles the event can throw an exception. For example, if a designer file is checked into source code control, the handler of this event typically throws an exception if the user refuses to check out the file.
A System.ComponentModel.Design.ComponentChangingEventArgs provides the following information:
A Component property that indicates the component that is about to be modified.
A Member property that indicates the member that is about to be changed.