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

G. andrew Duthie; matthew Macdonald

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

ListCommandEventArgs.NET 1.1

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

This custom EventArgs object contains information about the item the user clicked when the List.ItemCommand event fires. The CommandName property will contain a null reference (Nothing), while the ListItem identifies the MobileListItem that was clicked.

public class 

ListCommandEventArgs : System.Web.UI.WebControls.CommandEventArgs { // Public Constructors public

ListCommandEventArgs (MobileListItem

item , object

commandSource ); public

ListCommandEventArgs (MobileListItem

item , object

commandSource , System.Web.UI.WebControls.CommandEventArgs

originalArgs ); // Protected Static Fields protected static readonly string

DefaultCommand ; // =Default // Public Instance Properties public object

CommandSource {get; } public MobileListItem

ListItem {get; } }

Hierarchy

System.Object System.EventArgs System.Web.UI.WebControls.CommandEventArgs ListCommandEventArgs

Passed To

List.OnItemCommand( ), ListCommandEventHandler.{BeginInvoke( ), Invoke( )}