ObjectDataSourceSelectingEventHandler 委托
定义
表示将处理 Selecting 控件的 ObjectDataSource 事件的方法。Represents the method that will handle the Selecting event of the ObjectDataSource control.
public delegate void ObjectDataSourceSelectingEventHandler(System::Object ^ sender, ObjectDataSourceSelectingEventArgs ^ e);
public delegate void ObjectDataSourceSelectingEventHandler(object sender, ObjectDataSourceSelectingEventArgs e);
type ObjectDataSourceSelectingEventHandler = delegate of obj * ObjectDataSourceSelectingEventArgs -> unit
Public Delegate Sub ObjectDataSourceSelectingEventHandler(sender As Object, e As ObjectDataSourceSelectingEventArgs)
参数
- sender
- Object
事件的源,即 ObjectDataSource 控件。The source of the event, the ObjectDataSource control.
包含事件数据的 ObjectDataSourceSelectingEventArgs。An ObjectDataSourceSelectingEventArgs that contains the event data.
注解
创建 ObjectDataSourceSelectingEventHandler 委托时,需要标识将要处理该事件的方法。When you create an ObjectDataSourceSelectingEventHandler 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, unless you remove the delegate. 有关如何处理事件的详细信息,请参阅 处理和引发事件。For more information about how to handle events, see Handling and Raising Events.
扩展方法
| GetMethodInfo(Delegate) |
获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate. |