Export (0) Print
Expand All

SemanticResultValue Constructor

Initializes a new instance of the SemanticResultValue class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method SemanticResultValue(Object) Initializes a new instance of the SemanticResultValue class and specifies a semantic value.
Public method SemanticResultValue(GrammarBuilder, Object) Initializes a new instance of the SemanticResultValue class and associates a semantic value with a GrammarBuilder object.
Public method SemanticResultValue(String, Object) Initializes a new instance of the SemanticResultValue class and associates a semantic value with a String object.
Top

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.

Show:
© 2014 Microsoft