IAgentUserInput::GetItemConfidence
[从 Windows 7 开始,Microsoft 代理已弃用,可能在后续版本的 Windows 中不可用。]
HRESULT GetItemConfidence(
long dwItemIndex, // index of Command alternative
long * plConfidence // address of confidence value for Command
);
检索传递给 IAgentNotifySink::Command 回调的命令的置信度值。
- 返回指示操作成功的S_OK。
-
dwItemIndex
-
传递给 IAgentNotifySink::Command 回调的 Command 替代项的索引。
-
plConfidence
-
接收传递给 IAgentNotifySink::Command 回调的命令替代项的置信度分数的变量的地址。
例如,如果语音输入不是命令的源,例如,如果用户从字符的弹出菜单中选择了命令,则 Microsoft 代理服务器将最佳匹配项的置信度值返回为 100,所有其他替代项的置信度值返回为零 (0) 。
另请参阅
IAgentUserInput::GetItemID、 IAgentUserInput::GetAllItemData、 IAgentUserInput::GetItemText