Share via


EntityCollection<TEntity>.EntityRemoved 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 an Entity is removed from this collection.

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

Syntax

'Declaration
Public Event EntityRemoved As EventHandler(Of EntityCollectionChangedEventArgs(Of TEntity))
'Usage
Dim instance As EntityCollection
Dim handler As EventHandler(Of EntityCollectionChangedEventArgs(Of TEntity))

AddHandler instance.EntityRemoved, handler
public event EventHandler<EntityCollectionChangedEventArgs<TEntity>> EntityRemoved
public:
 event EventHandler<EntityCollectionChangedEventArgs<TEntity>^>^ EntityRemoved {
    void add (EventHandler<EntityCollectionChangedEventArgs<TEntity>^>^ value);
    void remove (EventHandler<EntityCollectionChangedEventArgs<TEntity>^>^ value);
}
member EntityRemoved : IEvent<EventHandler<EntityCollectionChangedEventArgs<'TEntity>>,
    EntityCollectionChangedEventArgs<'TEntity>>
JScript supports the use of events, but not the declaration of new ones.

Examples

Me.Employee1.EntityRemoved += New EventHandler(Of EntityCollectionChangedEventArgs(Of Employee))(Employee1_EntityRemoved)
this.Employee1.EntityRemoved += new EventHandler<EntityCollectionChangedEventArgs<Employee>>(Employee1_EntityRemoved);

See Also

Reference

EntityCollection<TEntity> Class

System.ServiceModel.DomainServices.Client Namespace