SpeechRecognitionResult.Constraint 属性

定义

获取用于识别结果的约束。

public:
 property ISpeechRecognitionConstraint ^ Constraint { ISpeechRecognitionConstraint ^ get(); };
ISpeechRecognitionConstraint Constraint();
public ISpeechRecognitionConstraint Constraint { get; }
var iSpeechRecognitionConstraint = speechRecognitionResult.constraint;
Public ReadOnly Property Constraint As ISpeechRecognitionConstraint

属性值

用于识别结果的约束。 使用 SpeechRecognitionTopicConstraint) 预定义语法 (远程识别为 Null。

注解

必须在 RecognizeAsyncRecognizeWithUIAsync 之前调用 CompileConstraintsAsync,即使 Constraints 属性中未指定约束也是如此。

适用于

另请参阅