Share via


EntityCollection<TEntity>.INotifyCollectionChanged.CollectionChanged Event

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Raised when the contents of the collection changes.

Namespace:  System.ServiceModel.DomainServices.Client
Assembly:  System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)

Syntax

'Declaration
Private Event CollectionChanged As NotifyCollectionChangedEventHandler
    Implements INotifyCollectionChanged.CollectionChanged
'Usage
Dim instance As EntityCollection
Dim handler As NotifyCollectionChangedEventHandler

AddHandler CType(instance, INotifyCollectionChanged).CollectionChanged, handler
event NotifyCollectionChangedEventHandler INotifyCollectionChanged.CollectionChanged
private:
virtual  event NotifyCollectionChangedEventHandler^ CollectionChanged {
    void add (NotifyCollectionChangedEventHandler^ value);
    void remove (NotifyCollectionChangedEventHandler^ value);
}
private abstract CollectionChanged : IEvent<NotifyCollectionChangedEventHandler,
    NotifyCollectionChangedEventArgs>
private override CollectionChanged : IEvent<NotifyCollectionChangedEventHandler,
    NotifyCollectionChangedEventArgs>
JScript supports the use of events, but not the declaration of new ones.

Implements

INotifyCollectionChanged.CollectionChanged

Remarks

This member is an explicit interface member implementation. It can be used only when the EntityCollection<TEntity> instance is cast to an INotifyCollectionChanged interface.

See Also

Reference

EntityCollection<TEntity> Class

System.ServiceModel.DomainServices.Client Namespace