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 ComponentAdding Event

[To be supplied.]

The following declaration shows the syntax for a method that handles the ComponentAdding event.

[Visual Basic]
Private Sub IComponentChangeServiceName_ComponentAdding( _
   ByVal sender As Object, _
   ByVal e As ComponentEventArgs _
)
[C#]
private void IComponentChangeServiceName_ComponentAdding(
   object sender,
   ComponentEventArgs e
);
[C++]
private: void IComponentChangeServiceName_ComponentAdding(
   Object* sender,
   ComponentEventArgs* e
);
[JScript]
private IComponentChangeServiceName_ComponentAdding(
   sender : Object,
   e : ComponentEventArgs
);

Parameters

sender
The source of the event.
e
A ComponentEventArgs that contains the event data. The following ComponentEventArgs properties provide information specific to this event.
Property Description
Component
Gets or sets the component associated with the event.

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 MembersTopic | System.ComponentModel.Design Namespace