共用方式為


DataRelationCollection.OnCollectionChanging(CollectionChangeEventArgs) 方法

定義

引發 CollectionChanged 事件。

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

CollectionChangeEventArgs,其中包含事件資料。

備註

引發事件會透過委派叫用此事件處理常式。 如需概觀,請參閱 處理和引發事件

給繼承者的注意事項

在繼承類別中覆寫 OnCollectionChanging(CollectionChangeEventArgs) 時,請確定您呼叫 OnCollectionChanging(CollectionChangeEventArgs) 基類的方法。

適用於

另請參閱