Compartilhar via


EntitySet.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.]

Occurs when the collection is changed, or is reset.

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 EntitySet
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 EntitySet instance is cast to an INotifyCollectionChanged interface.

See Also

Reference

EntitySet Class

System.ServiceModel.DomainServices.Client Namespace