Edit

Share via


ListViewCommandEventArgs(ListViewItem, Object, CommandEventArgs) Constructor

Definition

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

public:
 ListViewCommandEventArgs(System::Web::UI::WebControls::ListViewItem ^ item, System::Object ^ commandSource, System::Web::UI::WebControls::CommandEventArgs ^ originalArgs);
public ListViewCommandEventArgs (System.Web.UI.WebControls.ListViewItem item, object commandSource, System.Web.UI.WebControls.CommandEventArgs originalArgs);
new System.Web.UI.WebControls.ListViewCommandEventArgs : System.Web.UI.WebControls.ListViewItem * obj * System.Web.UI.WebControls.CommandEventArgs -> System.Web.UI.WebControls.ListViewCommandEventArgs
Public Sub New (item As ListViewItem, commandSource As Object, originalArgs As CommandEventArgs)

Parameters

item
ListViewItem

The item from the ListView control for which the command was issued.

commandSource
Object

The source of the command.

originalArgs
CommandEventArgs

The event data.

Remarks

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
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.

Applies to

See also