ActivityCollection::ListChanged Event

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Raised whenever a change is made to the contents of this ICollection.

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

public:
event EventHandler<ActivityCollectionChangeEventArgs^>^ ListChanged {
	void add(EventHandler<ActivityCollectionChangeEventArgs^>^ value);
	void remove(EventHandler<ActivityCollectionChangeEventArgs^>^ value);
}

In this context, adding or removing members raises the event. Modifying a member does not raise this event.

When you create an ActivityCollection delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about event-handler delegates, see NIB: Events and Delegates.

.NET Framework
Available since 3.0
Return to top
Show: