DataRelationCollection.OnCollectionChanging(CollectionChangeEventArgs) 方法

定义

引发 CollectionChanged 事件。Raises the CollectionChanged event.

protected:
 virtual void OnCollectionChanging(System::ComponentModel::CollectionChangeEventArgs ^ ccevent);
protected public:
 virtual void OnCollectionChanging(System::ComponentModel::CollectionChangeEventArgs ^ ccevent);
protected virtual void OnCollectionChanging (System.ComponentModel.CollectionChangeEventArgs ccevent);
protected internal virtual void OnCollectionChanging (System.ComponentModel.CollectionChangeEventArgs ccevent);
abstract member OnCollectionChanging : System.ComponentModel.CollectionChangeEventArgs -> unit
override this.OnCollectionChanging : System.ComponentModel.CollectionChangeEventArgs -> unit
Protected Overridable Sub OnCollectionChanging (ccevent As CollectionChangeEventArgs)
Protected Friend Overridable Sub OnCollectionChanging (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.

继承者说明

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

适用于