Share via


SemanticValue Constructor (String, Object, Single)

Creates a new SemanticValue object with a particular value, key name and confidence level.

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

Syntax

'Declaration

Parameters

  • keyName
    A string containing a key that be used to reference this SemanticValue instance.
  • value
    An object containing information to be store in SemanticValue object.
  • confidence
    A float containing an estimate of the certainty of semantic analysis.

Remarks

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

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

The confidence parameter (returned by the

Confidence property on SemanticValue instances), should be between 0.0 and 1.0.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition

Target Platforms

See Also

Reference

SemanticValue Class
SemanticValue Members
Microsoft.Speech.Recognition Namespace