Επεξεργασία

Κοινή χρήση μέσω


GridViewCommandEventArgs Constructors

Definition

Initializes a new instance of the GridViewCommandEventArgs class.

Overloads

GridViewCommandEventArgs(Object, CommandEventArgs)

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

GridViewCommandEventArgs(GridViewRow, Object, CommandEventArgs)

Initializes a new instance of the GridViewCommandEventArgs class using the specified row, source of the command, and event arguments.

GridViewCommandEventArgs(Object, CommandEventArgs)

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

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

Parameters

commandSource
Object

The source of the command.

originalArgs
CommandEventArgs

A CommandEventArgs object that contains event data.

Remarks

Use this constructor to initialize a new instance of the GridViewCommandEventArgs class.

The following table shows the initial property values for an instance of GridViewCommandEventArgs.

Property Initial value
CommandArgument The value of the CommandArgument property of the CommandEventArgs object contained in the originalArgs parameter.
CommandName The value of the CommandName property of the CommandEventArgs object contained in the originalArgs parameter.
CommandSource The object contained in the commandSource parameter.

Note

This constructor is used primarily by control developers when raising events.

See also

Applies to

GridViewCommandEventArgs(GridViewRow, Object, CommandEventArgs)

Initializes a new instance of the GridViewCommandEventArgs class using the specified row, source of the command, and event arguments.

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

Parameters

row
GridViewRow

A GridViewRow object that represents the row containing the button.

commandSource
Object

The source of the command.

originalArgs
CommandEventArgs

A CommandEventArgs object that contains event data.

Remarks

Use this constructor to initialize a new instance of the GridViewCommandEventArgs class.

The following table shows the initial property values for an instance of GridViewCommandEventArgs.

Property Initial value
CommandArgument The value of the CommandArgument property of the CommandEventArgs object contained in the originalArgs parameter.
CommandName The value of the CommandName property of the CommandEventArgs object contained in the originalArgs parameter.
CommandSource The object contained in the commandSource parameter.

Note

This constructor is used primarily by control developers when raising events.

See also

Applies to