DataGridSortCommandEventArgs(Object, DataGridCommandEventArgs) 建構函式

定義

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

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

參數

commandSource
Object

命令的來源。

dce
DataGridCommandEventArgs

DataGridCommandEventArgs,其中包含事件資料。

備註

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

當 的實例 DataGridSortCommandEventArgs 是由呼叫這個建構函式所建立時,下列屬性會初始化為指定的值。

屬性 初始值
CommandSource commandSource 參數的值。
SortExpression dce.CommandArgument 參數的值。

適用於