Grammar Constructor (String, String, Object())
.NET Framework (current version)
Initializes a new instance of the Grammar class from a file that contains a grammar definition, and specifies the name of a rule to be the entry point to the grammar..
System.Speech (in System.Speech.dll)
Public Sub New (
path As String,
ruleName As String,
parameters As Object()
The path to a file, including DLLs, that contains a grammar specification.
The identifier of the rule to use as the entry point of the speech recognition grammar, or null to use the default root rule of the grammar description.
Parameters to be passed to the initialization handler specified by the OnInit property for the entry point or the root rule of the Grammar to be created. This parameter may be null.
Any of the parameters contain an invalid value.
The file specified by path does not contain a valid grammar or the rule specified in ruleName.
The contents of the array parameters do not match the arguments of any of the rule's initialization handlers.
The grammar has a relative rule reference that cannot be resolved by the default base Uri rule for grammars.
Parameters for an initialization handler may also be specified.
Return to top
Available since 3.0