ListViewCommandEventArgs Constructor (ListViewItem^, Object^, CommandEventArgs^)

 

Initializes a new instance of the ListViewCommandEventArgs class by using the specified source of the command and event arguments.

Namespace:   System.Web.UI.WebControls
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.

System_CAPS_noteNote

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

CommandArgument

The value of the CommandArgument property of the CommandEventArgs object that is contained in the originalArgs parameter.

CommandName

The value of the CommandName property of the CommandEventArgs object that is contained in the originalArgs parameter.

CommandSource

The object that is contained in the commandSource parameter.

.NET Framework
Available since 3.5
Return to top
Show: