ObjectListDataBindEventHandler 委托

定义

警告

此 API 现已过时。

表示将要处理 ObjectListItemDataBind 事件的方法。Represents the method that will handle the ItemDataBind event of an ObjectList. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public delegate void ObjectListDataBindEventHandler(System::Object ^ sender, ObjectListDataBindEventArgs ^ e);
[System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see https://go.microsoft.com/fwlink/?LinkId=157231.")]
public delegate void ObjectListDataBindEventHandler(object sender, ObjectListDataBindEventArgs e);
type ObjectListDataBindEventHandler = delegate of obj * ObjectListDataBindEventArgs -> unit
Public Delegate Sub ObjectListDataBindEventHandler(sender As Object, e As ObjectListDataBindEventArgs)

参数

sender
Object

事件的源,即 ObjectListThe source of the event, an ObjectList.

e
ObjectListDataBindEventArgs

包含事件数据的 ObjectListDataBindEventArgs 对象。An ObjectListDataBindEventArgs object that contains the event data.

继承
ObjectListDataBindEventHandler
属性

注解

ObjectList创建 ObjectListDataBindEventHandler 委托时,需要标识将处理该事件的方法。When you create an ObjectListDataBindEventHandler delegate for an ObjectList, you identify the method that will handle the event. ObjectList 在生成项事件时(在数据绑定后)通知处理程序。The ObjectList notifies the handler when an item event is generated (after data binding). 若要将事件与事件处理程序关联,请将该委托的一个实例添加到事件中。To associate the event with your event handler, add an instance of the delegate to the event. 除非移除了该委托,否则每当发生该事件时都会调用事件处理程序。Unless you remove the delegate, the event handler is called whenever the event occurs.

您可以使用此处理程序来执行复杂的数据绑定,并在 ObjectListItem 对象中设置值。You can use this handler to do complex data binding and to set values in the ObjectListItem object.

扩展方法

GetMethodInfo(Delegate)

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

适用于

另请参阅