Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4
© 2015 Microsoft