Share via


SpeechRecognitionResult.Constraint Property

Definition

Gets the constraint used for the recognition result.

public:
 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).

Remarks

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

Applies to

See also