SemanticValue Constructor (String, Object, Single)

Initializes a new instance of the SemanticValue class and specifies a semantic value, a key name, and a confidence level.

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


Public Sub New ( _
    keyName As String, _
    value As Object, _
    confidence As Single _
Dim keyName As String
Dim value As Object
Dim confidence As Single

Dim instance As New SemanticValue(keyName, _
    value, confidence)
public SemanticValue(
    string keyName,
    Object value,
    float confidence


  • confidence
    Type: System.Single
    A float containing an estimate of the certainty of semantic analysis.


There are no restrictions on the type of value to be stored.

An application can retrieve value by using the Value property on a SemanticValue instance.

The confidence parameter (returned by the Confidence property on a SemanticValue instance), should be between 0.0 and 1.0.

See Also


SemanticValue Class

SemanticValue Members

SemanticValue Overload

Microsoft.Speech.Recognition Namespace