Export (0) Print
Expand All

EntitySet.OnCollectionChanged Method

WCF RIA Services

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

Called whenever the collection changes.

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

protected virtual void OnCollectionChanged(
	NotifyCollectionChangedAction action,
	Object affectedObject,
	int index
)

Parameters

action
Type: System.Collections.Specialized.NotifyCollectionChangedAction
The change action.
affectedObject
Type: System.Object
For reset events, this parameter will be a collection of removed entities. For all other events, this parameter will be the single affected entity.
index
Type: System.Int32
The affected index.

Overrides should call the base method to raise any required change notifications.

Show:
© 2015 Microsoft