SemanticResultKey Constructor

Constructs a new instance of SemanticResultKey and associates the key with grammar elements.

Remarks

The constructors for SemanticResultKey specify a specific text tag and assigns a specific set of constituents used to construct a Grammar.

The Grammar constituents can be specified either as an array of GrammarBuilder objects, or an array of System.String instances.

The SemanticValue returned if the constituents are used in recognition, will be accessing using the text tag provided to the constructor of the SemanticResultKey as a semantic key. The ValuepropertyoftheSemanticValue instance will be determined by the constituents used in the definition of SemanticResultKey.

Overload List

Name Description
SemanticResultKey (String, GrammarBuilder[])
Assigns a semantic key to one of more GrammarBuilder objects used to construct a Grammar.
SemanticResultKey (String, String[])
Assigns a semantic key to one of more System.String instances used to construct a Grammar.

See Also

Reference

SemanticResultKey Class
SemanticResultKey Members
Microsoft.Speech.Recognition Namespace