SemanticValue Constructor (Object)

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

Initializes a new instance of the SemanticValue class and specifies a semantic value.

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

Syntax

Visual Basic (Declaration)
Public Sub New ( _
	value As Object _
)
Visual Basic (Usage)
Dim value As Object

Dim instance As New SemanticValue(value)
C#
public SemanticValue(
	Object value
)

Parameters

value
Type: System..::..Object

The information to be stored in the SemanticValue object.

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 value of the Confidence property for the SemanticValue instance will be set to -1.

A SemanticValue constructed with this method cannot be referenced by key name.

See Also