DataColumnChangeEventHandler 委托

定义

表示用来处理 ColumnChanging 事件的方法。Represents the method that will handle the ColumnChanging event.

public delegate void DataColumnChangeEventHandler(System::Object ^ sender, DataColumnChangeEventArgs ^ e);
public delegate void DataColumnChangeEventHandler(object sender, DataColumnChangeEventArgs e);
type DataColumnChangeEventHandler = delegate of obj * DataColumnChangeEventArgs -> unit
Public Delegate Sub DataColumnChangeEventHandler(sender As Object, e As DataColumnChangeEventArgs)

参数

sender
Object

事件源。The source of the event.

e
DataColumnChangeEventArgs

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

继承
DataColumnChangeEventHandler

注解

创建 DataColumnChangeEventHandler 委托时,需要标识将处理该事件的方法。When you create a DataColumnChangeEventHandler delegate, you identify the method that will handle the event. 若要将事件与事件处理程序关联,请将该委托的一个实例添加到事件中。To associate the event with your event handler, add an instance of the delegate to the event. 事件发生时,将调用事件处理程序,直到删除委托。The event handler is called whenever the event occurs, until you remove the delegate. 有关委托的详细信息,请参阅处理和引发事件For more information about delegates, see Handling and Raising Events.

备注

事件处理程序的声明必须具有与 DataColumnChangeEventHandler 委托声明相同的参数。The declaration of your event handler must have the same parameters as the DataColumnChangeEventHandler delegate declaration.

扩展方法

GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于

另请参阅