共用方式為


IObjectWithSelection 介面 (shobjidl_core.h)

公開方法,這些方法會取得或設定Shell項目陣列所代表的選取專案。

繼承

IObjectWithSelection 介面繼承自 IUnknown 介面。 IObjectWithSelection 也有下列類型的成員:

方法

IObjectWithSelection 介面具有這些方法。

 
IObjectWithSelection::GetSelection

取得包含所選取專案的Shell項目數位。
IObjectWithSelection::SetSelection

提供Shell項目陣列,指定選取範圍中包含的專案。

備註

實作時機

這個介面是由實作 IExecuteCommand 的動詞所實作。 這可讓物件透過 IExecuteCommand::Execute 在選取範圍上叫用動詞。

使用時機

Windows 檔案總管會使用 IObjectWithSelection 在選取的專案上叫用動詞。 請勿直接呼叫這個介面。

規格需求

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