Share via


GridViewCommandEventArgs 建構函式

定義

初始化 GridViewCommandEventArgs 類別的新執行個體。

多載

GridViewCommandEventArgs(Object, CommandEventArgs)

使用指定的命令來源和事件引數,初始化 GridViewCommandEventArgs 類別的新執行個體。

GridViewCommandEventArgs(GridViewRow, Object, CommandEventArgs)

使用指定的資料列、命令來源和事件引數,初始化 GridViewCommandEventArgs 類別的新執行個體。

GridViewCommandEventArgs(Object, CommandEventArgs)

使用指定的命令來源和事件引數,初始化 GridViewCommandEventArgs 類別的新執行個體。

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

命令的來源。

originalArgs
CommandEventArgs

CommandEventArgs 物件,包含事件資料。

備註

使用此建構函式來初始化 類別的新實例 GridViewCommandEventArgs

下表顯示 GridViewCommandEventArgs 執行個體的初始屬性值。

屬性 初始值
CommandArgument CommandArgument參數中包含的 originalArgs 物件屬性值 CommandEventArgs
CommandName CommandName參數中包含的 originalArgs 物件屬性值 CommandEventArgs
CommandSource 參數中包含的 commandSource 物件。

注意

這個建構函式主要是由控制項開發人員在引發事件時使用。

另請參閱

適用於

GridViewCommandEventArgs(GridViewRow, Object, CommandEventArgs)

使用指定的資料列、命令來源和事件引數,初始化 GridViewCommandEventArgs 類別的新執行個體。

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 物件,表示包含按鈕的資料列。

commandSource
Object

命令的來源。

originalArgs
CommandEventArgs

CommandEventArgs 物件,包含事件資料。

備註

使用此建構函式來初始化 類別的新實例 GridViewCommandEventArgs

下表顯示 GridViewCommandEventArgs 執行個體的初始屬性值。

屬性 初始值
CommandArgument CommandArgument參數中包含的 originalArgs 物件屬性值 CommandEventArgs
CommandName CommandName參數中包含的 originalArgs 物件屬性值 CommandEventArgs
CommandSource 參數中包含的 commandSource 物件。

注意

這個建構函式主要是由控制項開發人員在引發事件時使用。

另請參閱

適用於