共用方式為


IAgentCommands::Remove

[Microsoft代理程式從 Windows 7 開始已被取代,而且可能無法在後續版本的 Windows 中使用。]

HRESULT Remove(
   long dwID  // Command ID
);

Commands 集合中移除指定的 Command

  • 傳回S_OK,表示作業成功。

dwID

要從 Commands 集合中移除 Command 的識別碼。

Commands 集合中移除 Command,也會從彈出視窗中移除它,並在應用程式為輸入作用中時,語音命令視窗 移除它。

另請參閱

IAgentCommands::AddIAgentCommands::InsertIAgentCommands::RemoveAll