SemanticResultValue Constructor

 

Initializes a new instance of the SemanticResultValue class.

Namespace:   System.Speech.Recognition
Assembly:  System.Speech (in System.Speech.dll)

NameDescription
System_CAPS_pubmethodSemanticResultValue(GrammarBuilder, Object)

Initializes a new instance of the SemanticResultValue class and associates a semantic value with a GrammarBuilder object.

System_CAPS_pubmethodSemanticResultValue(Object)

Initializes a new instance of the SemanticResultValue class and specifies a semantic value.

System_CAPS_pubmethodSemanticResultValue(String, Object)

Initializes a new instance of the SemanticResultValue class and associates a semantic value with a String object.

The SemanticResultValue constructors support specifying an Object instance with an underlying data type of bool, int, float, or string.

A constructor can create a SemanticResultValue instance in either of two circumstances:

  • The SemanticResultValue instance must be explicitly associated with a grammar element when using a GrammarBuilder to construct a Grammar.

  • The SemanticResultValue is already associated with a string value phrase or a GrammarBuilder object.

Return to top
Show: