ASP.NET.in.a.Nutshell.Second.Edition [Electronic resources]

G. andrew Duthie; matthew Macdonald

نسخه متنی -صفحه : 873/ 631
نمايش فراداده

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( )}