SemanticValue Constructor (String, Object, Single)

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

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)

Syntax

Visual Basic (Declaration)
Public Sub New ( _
	keyName As String, _
	value As Object, _
	confidence As Single _
)
Visual Basic (Usage)
Dim keyName As String
Dim value As Object
Dim confidence As Single

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

Parameters

keyName
Type: System..::..String

A key that can be used to reference this SemanticValue instance.

value
Type: System..::..Object

An object containing information to be stored in the SemanticValue object.

confidence
Type: System..::..Single

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 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