IAgentCommandEx::SetVoiceCaption

[从 Windows 7 开始,Microsoft 代理已弃用,可能在后续版本的 Windows 中不可用。]

HRESULT SetVoiceCaption(
   BSTR bszVoiceCaption  // voice caption text
);

设置为命令显示的 VoiceCaption 文本。

  • 返回指示操作成功的S_OK。

bszVoiceCaption

一个 BSTR,指定 CommandVoiceCaption 属性的文本。

如果在 Commands 集合中定义 Command 对象并设置其 Voice 属性,则通常还会设置其 VoiceCaption 属性。 当客户端应用程序输入处于活动状态时,此文本将显示在“语音命令”窗口中。 如果未设置此属性,则 Caption 属性的设置将确定显示的文本。 如果未设置 VoiceCaption 或 属性,则命令不会显示在“语音命令”窗口中。

标题

另请参阅

IAgentCommand::GetCaptionIAgentCommand::SetEnabledIAgentCommand::SetVisibleIAgentCommand::SetVoiceIAgentCommandsEx::AddExIAgentCommandsEx::InsertExIAgentCommands::AddIAgentCommands::Insert