IAgentCommand::SetConfidenceThreshold
[Microsoft 代理从 Windows 7 开始已弃用,可能在后续版本的 Windows 中不可用。]
HRESULT SetConfidenceThreshold(
long lConfidence // Confidence setting for Command
);
设置 Command 的 Confidence 属性的值。
- 返回指示操作成功的S_OK。
-
lConfidence
-
Command 的 Confidence 属性的值。
如果 Command 事件中返回的最佳匹配项返回的置信度值不超过 ConfidenceThreshold 属性设置的值,则 SetConfidenceText 中提供的文本将显示在侦听提示中。
另请参阅
IAgentCommand::GetConfidenceThreshold、 IAgentCommand::SetConfidenceText、 IAgentUserInput::GetItemConfidence