ObjectListShowCommandsEventArgs.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 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public:
 property System::Web::UI::MobileControls::ObjectListCommandCollection ^ Commands { System::Web::UI::MobileControls::ObjectListCommandCollection ^ get(); };
public System.Web.UI.MobileControls.ObjectListCommandCollection Commands { get; }
member this.Commands : System.Web.UI.MobileControls.ObjectListCommandCollection
Public ReadOnly Property Commands As ObjectListCommandCollection

属性值

ObjectListCommandCollection

ObjectListCommandCollection 中的命令集合。The collection of commands in the ObjectListCommandCollection.

注解

您可以使用 Add 类的、 AddAtRemoveRemoveAt 方法在集合中添加或删除命令 ObjectListCommandCollectionYou can add or remove commands in the collection by using the Add, AddAt, Remove, and RemoveAt methods of the ObjectListCommandCollection class. 在事件期间,可以使用此属性来访问和修改对象中单个项的命令 ObjectList ShowItemCommandsYou can use this property to access and modify the commands for a single item in an ObjectList object during the ShowItemCommands event. 所做的更改不会影响为对象指定的命令的基集合 ObjectListChanges made do not affect the base collection of commands specified for the ObjectList object.

适用于

另请参阅