IFolderView2::SetSortColumns 方法 (shobjidl_core.h)

依指定的排序數據行設定和排序檢視。

語法

HRESULT SetSortColumns(
  [in] const SORTCOLUMN *rgSortColumns,
  [in] int              cColumns
);

參數

[in] rgSortColumns

類型: const SORTCOLUMN*

SORTCOLUMN 結構的指標。 這個結構的大小是由 cColumns 決定。

[in] cColumns

類型: int

要排序依據的數據行計數。

傳回值

類型: HRESULT

如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。

規格需求

需求
最低支援的用戶端 Windows Vista [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2008 [僅限傳統型應用程式]
目標平台 Windows
標頭 shobjidl_core.h (包括 Shobjidl.h)