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.AddOnComponentAdding

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

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

Parameters

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

Remarks

This event occurs during load and when the user creates a new component. You can cancel the add by throwing an exception here.

See Also

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