Export (0) Print
Expand All

DataListCommandEventArgs Constructor

Initializes a new instance of the DataListCommandEventArgs class.

[Visual Basic]
Public Sub New( _
   ByVal item As DataListItem, _
   ByVal commandSource As Object, _
   ByVal originalArgs As CommandEventArgs _
public DataListCommandEventArgs(
   DataListItem item,
 object commandSource,
 CommandEventArgs originalArgs
public: DataListCommandEventArgs(
   DataListItem* item,
 Object* commandSource,
 CommandEventArgs* originalArgs
public function DataListCommandEventArgs(
   item : DataListItem,
 commandSource : Object,
 originalArgs : CommandEventArgs


The selected item from the DataList.
The source of the command.
A CommandEventArgs that contains the original event data.


Use this constructor to create and initialize a new instance of the DataListCommandEventArgs class.

When an instance of DataListCommandEventArgs is created by a call to this constructor, the following properties are initialized to the specified values.

Property Initial Value
Item The value of the item parameter.
CommandSource The value of the commandSource parameter.


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

DataListCommandEventArgs Class | DataListCommandEventArgs Members | System.Web.UI.WebControls Namespace

© 2014 Microsoft