Share via

SpeechRecognitionResult.Constraint Property


Gets the constraint used for the recognition result.

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

Property Value

The constraint used for the recognition result. Null for remote recognition using predefined grammars (SpeechRecognitionTopicConstraint).


CompileConstraintsAsync must be called before RecognizeAsync or RecognizeWithUIAsync, even if no constraints are specified in the Constraints property.

Applies to

See also