IExplorerCommandState 介面 (shobjidl_core.h)

公開允許擷取命令狀態的單一方法。

繼承

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

方法

IExplorerCommandState 介面具有這些方法。

 
IExplorerCommandState::GetState

取得與指定之Shell專案相關聯的命令狀態。

備註

何時實作

當您需要根據項目的屬性) ,以動態方式 (判斷命令狀態時,請實作這個介面。 此介面提供與 IExplorerCommand::GetState 相同的功能,而不需要該介面的其他方法的額外負荷。 當您只需要計算命令狀態時,請實作 IExplorerCommandState

使用時機

請勿直接呼叫 IExplorerCommandState 的方法。 當使用者想要對專案執行動作時,Windows 檔案總管會呼叫 您的 IExplorerCommandState::GetState 實作。

規格需求

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

另請參閱

IExplorerCommand::GetState