SrgsItem Constructor (String)

 

Initializes a new instance of the SrgsItem class and specifies its textual contents.

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

public SrgsItem(
	string text
)

Parameters

text
Type: System.String

The text associated with the item.

Exception Condition
ArgumentNullException

text is null.

ArgumentException

text is an empty string.

.NET Framework
Available since 3.0
Return to top
Show: