共用方式為


SpeechRecognitionResult.Constraint 屬性

定義

取得用於辨識結果的條件約束。

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

屬性值

用於辨識結果的條件約束。 使用預先定義的文法進行遠端辨識的 Null (SpeechRecognitionTopicConstraint) 。

備註

RecognizeAsyncRecognizeWithUIAsync之前,必須先呼叫CompileConstraintsAsync,即使 Constraints 屬性中未指定任何條件約束也一樣。

適用於

另請參閱