DataTable.OnColumnChanging(DataColumnChangeEventArgs) 方法

定义

引发 ColumnChanging 事件。Raises the ColumnChanging event.

protected public:
 virtual void OnColumnChanging(System::Data::DataColumnChangeEventArgs ^ e);
protected:
 virtual void OnColumnChanging(System::Data::DataColumnChangeEventArgs ^ e);
protected internal virtual void OnColumnChanging (System.Data.DataColumnChangeEventArgs e);
protected virtual void OnColumnChanging (System.Data.DataColumnChangeEventArgs e);
abstract member OnColumnChanging : System.Data.DataColumnChangeEventArgs -> unit
override this.OnColumnChanging : System.Data.DataColumnChangeEventArgs -> unit
Protected Friend Overridable Sub OnColumnChanging (e As DataColumnChangeEventArgs)
Protected Overridable Sub OnColumnChanging (e As DataColumnChangeEventArgs)

参数

e
DataColumnChangeEventArgs

一个包含事件数据的 DataColumnChangeEventArgsA DataColumnChangeEventArgs that contains the event data.

注解

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

继承者说明

当在派生类中重写 OnColumnChanging(DataColumnChangeEventArgs) 时,请确保调用基类的 OnColumnChanging(DataColumnChangeEventArgs) 方法。When overriding OnColumnChanging(DataColumnChangeEventArgs) in a derived class, be sure to call the base class's OnColumnChanging(DataColumnChangeEventArgs) method.

适用于

另请参阅