DataGridSortCommandEventArgs(Object, DataGridCommandEventArgs) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 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
命令的來源。
DataGridCommandEventArgs,其中包含事件資料。
備註
使用此建構函式來建立和初始化 類別的新實例 DataGridSortCommandEventArgs 。
當 的實例 DataGridSortCommandEventArgs 是由呼叫這個建構函式所建立時,下列屬性會初始化為指定的值。
屬性 | 初始值 |
---|---|
CommandSource | commandSource 參數的值。 |
SortExpression | dce.CommandArgument 參數的值。 |