GridViewCommandEventArgs 构造函数
定义
初始化 GridViewCommandEventArgs 类的新实例。Initializes a new instance of the GridViewCommandEventArgs class.
重载
| GridViewCommandEventArgs(Object, CommandEventArgs) |
使用指定的命令源和事件参数初始化 GridViewCommandEventArgs 类的新实例。Initializes a new instance of the GridViewCommandEventArgs class using the specified source of the command and event arguments. |
| GridViewCommandEventArgs(GridViewRow, Object, CommandEventArgs) |
使用指定的行、命令源和事件参数初始化 GridViewCommandEventArgs 类的新实例。Initializes a new instance of the GridViewCommandEventArgs class using the specified row, source of the command, and event arguments. |
GridViewCommandEventArgs(Object, CommandEventArgs)
使用指定的命令源和事件参数初始化 GridViewCommandEventArgs 类的新实例。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)
参数
- commandSource
- Object
命令源。The source of the command.
- originalArgs
- CommandEventArgs
包含事件数据的 CommandEventArgs 对象。A CommandEventArgs object that contains event data.
注解
使用此构造函数初始化类的新实例 GridViewCommandEventArgs 。Use this constructor to initialize a new instance of the GridViewCommandEventArgs class.
下表显示了 GridViewCommandEventArgs 实例的初始属性值。The following table shows the initial property values for an instance of GridViewCommandEventArgs.
| propertiesProperty | 初始值Initial value |
|---|---|
| CommandArgument | CommandArgument CommandEventArgs 参数中包含的对象的属性值 originalArgs 。The value of the CommandArgument property of the CommandEventArgs object contained in the originalArgs parameter. |
| CommandName | CommandName CommandEventArgs 参数中包含的对象的属性值 originalArgs 。The value of the CommandName property of the CommandEventArgs object contained in the originalArgs parameter. |
| CommandSource | 参数中包含的对象 commandSource 。The object contained in the commandSource parameter. |
备注
此构造函数主要由控件开发人员在引发事件时使用。This constructor is used primarily by control developers when raising events.
另请参阅
适用于
GridViewCommandEventArgs(GridViewRow, Object, CommandEventArgs)
使用指定的行、命令源和事件参数初始化 GridViewCommandEventArgs 类的新实例。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)
参数
- row
- GridViewRow
GridViewRow 对象,它表示包含按钮的行。A GridViewRow object that represents the row containing the button.
- commandSource
- Object
命令源。The source of the command.
- originalArgs
- CommandEventArgs
包含事件数据的 CommandEventArgs 对象。A CommandEventArgs object that contains event data.
注解
使用此构造函数初始化类的新实例 GridViewCommandEventArgs 。Use this constructor to initialize a new instance of the GridViewCommandEventArgs class.
下表显示了 GridViewCommandEventArgs 实例的初始属性值。The following table shows the initial property values for an instance of GridViewCommandEventArgs.
| propertiesProperty | 初始值Initial value |
|---|---|
| CommandArgument | CommandArgument CommandEventArgs 参数中包含的对象的属性值 originalArgs 。The value of the CommandArgument property of the CommandEventArgs object contained in the originalArgs parameter. |
| CommandName | CommandName CommandEventArgs 参数中包含的对象的属性值 originalArgs 。The value of the CommandName property of the CommandEventArgs object contained in the originalArgs parameter. |
| CommandSource | 参数中包含的对象 commandSource 。The object contained in the commandSource parameter. |
备注
此构造函数主要由控件开发人员在引发事件时使用。This constructor is used primarily by control developers when raising events.