DataRelationCollection.OnCollectionChanged(CollectionChangeEventArgs) Método

Definición

Genera el evento CollectionChanged.Raises the CollectionChanged event.

protected:
 virtual void OnCollectionChanged(System::ComponentModel::CollectionChangeEventArgs ^ ccevent);
protected virtual void OnCollectionChanged (System.ComponentModel.CollectionChangeEventArgs ccevent);
abstract member OnCollectionChanged : System.ComponentModel.CollectionChangeEventArgs -> unit
override this.OnCollectionChanged : System.ComponentModel.CollectionChangeEventArgs -> unit
Protected Overridable Sub OnCollectionChanged (ccevent As CollectionChangeEventArgs)

Parámetros

ccevent
CollectionChangeEventArgs

Objeto CollectionChangeEventArgs que contiene los datos del evento.A CollectionChangeEventArgs that contains the event data.

Comentarios

Cuando se genera un evento, se invoca el controlador de eventos a través de un delegado.Raising an event invokes the event handler through a delegate. Para obtener información general, consulte controlar y provocar eventos.For an overview, see Handling and Raising Events.

Notas a los desarrolladores de herederos

Al reemplazar OnCollectionChanged(CollectionChangeEventArgs) en una clase heredada, asegúrese de llamar al OnCollectionChanged(CollectionChangeEventArgs) método para la clase base.When overriding OnCollectionChanged(CollectionChangeEventArgs) in an inheriting class, make sure that you call the OnCollectionChanged(CollectionChangeEventArgs) method for the base class.

Se aplica a

Consulte también: