DictationGrammar Constructor (String)


Initializes a new instance of the DictationGrammar class with a specific dictation grammar.

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

public DictationGrammar(
	string topic


Type: System.String

An XML-compliant Universal Resource Identifier (URI) that specifies the dictation grammar, either grammar:dictation or grammar:dictation#spelling.

The Speech platform uses a specialized URI syntax to define the custom dictation grammar. The value grammar:dictation indicates the default dictation grammar. The value grammar:dictation#spelling indicates the spelling dictation grammar.

.NET Framework
Available since 3.0
Return to top