ObjectListShowCommandsEventHandler 委托

定义

警告

此 API 现已过时。

表示将要处理 ObjectListItemCommand 事件的方法。Represents the method that will handle the ItemCommand 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 ObjectListShowCommandsEventHandler(System::Object ^ sender, ObjectListShowCommandsEventArgs ^ 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 ObjectListShowCommandsEventHandler(object sender, ObjectListShowCommandsEventArgs e);
type ObjectListShowCommandsEventHandler = delegate of obj * ObjectListShowCommandsEventArgs -> unit
Public Delegate Sub ObjectListShowCommandsEventHandler(sender As Object, e As ObjectListShowCommandsEventArgs)

参数

sender
Object

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

e
ObjectListShowCommandsEventArgs

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

继承
ObjectListShowCommandsEventHandler
属性

注解

ObjectList创建 ObjectListShowCommandsEventHandler 委托时,需要标识将处理该事件的方法。When you create an ObjectListShowCommandsEventHandler 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.

扩展方法

GetMethodInfo(Delegate)

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

适用于

另请参阅