GridViewSortEventArgs(String, SortDirection) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 GridViewSortEventArgs 類別的新執行個體。
public:
GridViewSortEventArgs(System::String ^ sortExpression, System::Web::UI::WebControls::SortDirection sortDirection);
public GridViewSortEventArgs(string sortExpression, System.Web.UI.WebControls.SortDirection sortDirection);
new System.Web.UI.WebControls.GridViewSortEventArgs : string * System.Web.UI.WebControls.SortDirection -> System.Web.UI.WebControls.GridViewSortEventArgs
Public Sub New (sortExpression As String, sortDirection As SortDirection)
參數
- sortExpression
- String
排序表達式用於排序控制項中的項目。
- sortDirection
- SortDirection
A SortDirection 指示控制中物品排序的方向。
備註
使用此建構子初始化該類別的新實例 GridViewSortEventArgs 。
下表顯示了 的 GridViewSortEventArgs初始屬性值。
| 房產 | 初始值 |
|---|---|
| SortDirection | 參數的 sortDirection 值。 |
| SortExpression | 參數的 sortExpression 值。 |
Note
此建構器主要由控制開發者在舉辦事件時使用。