ListViewCommandEventArgs Constructor
Initializes a new instance of the ListViewCommandEventArgs class by using the specified source of the command and event arguments.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
public:
ListViewCommandEventArgs(
ListViewItem^ item,
Object^ commandSource,
CommandEventArgs^ originalArgs
)
Parameters
- item
- Type: System.Web.UI.WebControls::ListViewItem
The item from the ListView control for which the command was issued.
- commandSource
- Type: System::Object
The source of the command.
- originalArgs
- Type: System.Web.UI.WebControls::CommandEventArgs
The event data.
Use this constructor to initialize a new instance of the ListViewCommandEventArgs class.
Note: |
|---|
This constructor is primarily used by control developers when they raise events. |
The following table shows initial property values for an instance of the ListViewCommandEventArgs class.
Property | Initial value |
|---|---|
The value of the CommandArgument property of the CommandEventArgs object that is contained in the originalArgs parameter. | |
The value of the CommandName property of the CommandEventArgs object that is contained in the originalArgs parameter. | |
The object that is contained in the commandSource parameter. |
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note: