DataRelationCollection.OnCollectionChanged(CollectionChangeEventArgs) 方法

定义

引发 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)

参数

ccevent
CollectionChangeEventArgs

包含事件数据的 CollectionChangeEventArgsA CollectionChangeEventArgs that contains the event data.

注解

引发事件时,将通过委托调用事件处理程序。Raising an event invokes the event handler through a delegate. 有关概述,请参阅 处理和引发事件For an overview, see Handling and Raising Events.

继承者说明

OnCollectionChanged(CollectionChangeEventArgs) 在继承类中重写时,请确保调用 OnCollectionChanged(CollectionChangeEventArgs) 基类的方法。When overriding OnCollectionChanged(CollectionChangeEventArgs) in an inheriting class, make sure that you call the OnCollectionChanged(CollectionChangeEventArgs) method for the base class.

适用于