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
)

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.

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.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft