ObjectListShowCommandsEventArgs

ObjectListShowCommandsEventArgs.NET 1.1

System.Web.UI.MobileControls (system.web.mobile.dll)class

This custom EventArgs class defines the additional information that will be sent to methods that handle the ObjectList.ShowItemCommands event. This information includes the ObjectListItem that is being bound in the list (ListItem), and a the collection of commands that will be shown (Commands). You can programmatically add or remove ObjectListCommand instances to this collection to create an item-specific set of commands.

public class ObjectListShowCommandsEventArgs : EventArgs {
// Public Constructors
   public ObjectListShowCommandsEventArgs(ObjectListItem item, ObjectListCommandCollection commands);
// Public Instance Properties
   public ObjectListCommandCollection Commands{get; }
   public ObjectListItem ListItem{get; }
}

Hierarchy

System.Object System.EventArgs ObjectListShowCommandsEventArgs

Passed To

ObjectList.OnShowItemCommands( ), ObjectListShowCommandsEventHandler.{BeginInvoke( ), Invoke( )}



    Part I: Introduction to ASP.NET
    Part III: Namespace Reference
    Chapter 40. The System.Web.UI.MobileControls Namespace
    Chapter 42. The System.Web.UI.WebControls Namespace