EntitySet.OnCollectionChanged Method

[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)

Syntax

'Declaration
Protected Overridable Sub OnCollectionChanged ( _
    action As NotifyCollectionChangedAction, _
    affectedObject As Object, _
    index As Integer _
)
'Usage
Dim action As NotifyCollectionChangedAction
Dim affectedObject As Object
Dim index As Integer

Me.OnCollectionChanged(action, affectedObject, _
    index)
protected virtual void OnCollectionChanged(
    NotifyCollectionChangedAction action,
    Object affectedObject,
    int index
)
protected:
virtual void OnCollectionChanged(
    NotifyCollectionChangedAction action, 
    Object^ affectedObject, 
    int index
)
abstract OnCollectionChanged : 
        action:NotifyCollectionChangedAction * 
        affectedObject:Object * 
        index:int -> unit 
override OnCollectionChanged : 
        action:NotifyCollectionChangedAction * 
        affectedObject:Object * 
        index:int -> unit 
protected function OnCollectionChanged(
    action : NotifyCollectionChangedAction, 
    affectedObject : Object, 
    index : int
)

Parameters

  • 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.

Remarks

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

See Also

Reference

EntitySet Class

System.ServiceModel.DomainServices.Client Namespace