Share via


Commands Property (ObjectListShowCommandsEventArgs)

Sets or returns the collection of commands in the ObjectListCommandCollection objects. Initially, the collection is empty.

public System.Web.UI.MobileControls.ObjectListCommandCollection
   Commands {
   get
}

Remarks

You can add or remove commands in the collection by using the Add, AddAt, Remove, and RemoveAt methods of the ObjectListCommandCollection class.

You can use this property to access and modify the commands for a single item in an ObjectList object during the ShowItemCommands event. Changes made do not affect the base collection of commands specified for the ObjectList object.

See Also

ObjectList Class

Applies to: ObjectListShowCommandsEventArgs Class