//------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //------------------------------------------------------------------------------ /* */ namespace System.Web.UI.WebControls { using System; /// /// Provides data for the event of a . /// /// public class DataListCommandEventArgs : CommandEventArgs { private DataListItem item; private object commandSource; /// /// Initializes a new instance of the class. /// public DataListCommandEventArgs(DataListItem item, object commandSource, CommandEventArgs originalArgs) : base(originalArgs) { this.item = item; this.commandSource = commandSource; } /// /// Gets the selected item in the . /// public DataListItem Item { get { return item; } } /// /// Gets the source of the command. /// public object CommandSource { get { return commandSource; } } } }