SemanticValue Constructor (String, Object, Single)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

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

public SemanticValue(
	string keyName,
	object value,
	float confidence


Type: System.String

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

Type: System.Object

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

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.

.NET Framework
Available since 3.0
Return to top