This documentation is archived and is not being maintained.

DataRelationCollection.CollectionChanged Event

Occurs when the collection has changed.

[Visual Basic]
Public Event CollectionChanged As CollectionChangeEventHandler
public event CollectionChangeEventHandler CollectionChanged;
public: __event CollectionChangeEventHandler* CollectionChanged;

[JScript] In JScript, you can handle the events defined by a class, but you cannot define your own.

Event Data

The event handler receives an argument of type CollectionChangeEventArgs containing data related to this event. The following CollectionChangeEventArgs properties provide information specific to this event.

Property Description
Action Gets an action that specifies how the collection changed.
Element Gets the instance of the collection with the change.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

DataRelationCollection Class | DataRelationCollection Members | System.Data Namespace