NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

IComponentChangeService.AddOnComponentRemoving

Adds an event handler for the System.ComponentModel.Design.IComponentChangeService.OnComponentRemoving event.

[Visual Basic]
Sub AddOnComponentRemoving( _
   ByVal handler As ComponentEventHandler _
)
[C#]
void AddOnComponentRemoving(
   ComponentEventHandler handler
);
[C++]
void AddOnComponentRemoving(
   ComponentEventHandler* handler
) = 0;
[JScript]
function AddOnComponentRemoving(
   handler : ComponentEventHandler
);

Parameters

handler
A ComponentEventHandler delegate that represents the method that will handle the ComponentRemovingEvent.

Remarks

This event occurs during unload and when the user deletes a component. You can veto the remove by throwing an exception here.

See Also

IComponentChangeService Interface | IComponentChangeService Members | System.ComponentModel.Design Namespace | RemoveOnComponentRemoving | ComponentEventHandler