ObjectListShowCommandsEventArgs 类

定义

警告

此 API 现已过时。

ShowItemCommandsObjectList 事件提供数据。Provides data for the ShowItemCommands 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 ref class ObjectListShowCommandsEventArgs : EventArgs
[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 class ObjectListShowCommandsEventArgs : EventArgs
type ObjectListShowCommandsEventArgs = class
    inherit EventArgs
Public Class ObjectListShowCommandsEventArgs
Inherits EventArgs
继承
ObjectListShowCommandsEventArgs
属性

示例

有关代码示例,请参阅 ObjectList 概述的示例。For a code sample, see the example for the ObjectList overview.

注解

自动创建 ObjectListShowCommandsEventArgs 对象的实例,并将其传递给 ObjectListShowItemCommands 事件的事件处理程序。An instance of a ObjectListShowCommandsEventArgs object is automatically created and passed to the event handler for the ShowItemCommands event of an ObjectList.

继承的类或事件处理程序可以使用此事件来显示项独有的命令,方法是更改 Commands 属性中的命令集合。An inherited class or event handler can use this event to show commands unique to the item, by changing the collection of commands in the Commands property.

构造函数

ObjectListShowCommandsEventArgs(ObjectListItem, ObjectListCommandCollection)

初始化 ObjectListShowCommandsEventArgs 类的新实例。Initializes a new instance of the ObjectListShowCommandsEventArgs class. 此 API 已过时。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

属性

Commands

获取或设置 ObjectListCommandCollection 对象中的命令集合。Gets or sets the collection of commands in the ObjectListCommandCollection objects. 集合最初为空。Initially, the collection is empty. 此 API 已过时。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

ListItem

返回将要显示的指定命令的列表项。Returns the list item for the specified commands that will be displayed. 此 API 已过时。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

安全性

AspNetHostingPermission
用于在宿主环境中进行操作。for operating in a hosted environment. 要求值:InheritanceDemand;权限值:MinimalDemand value: InheritanceDemand; Permission value: Minimal.

适用于

另请参阅