Grammar Constructor (String^, String^, array<Object^>^)
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..
Assembly: System.Speech (in System.Speech.dll)
Parameters
- path
-
Type:
System::String^
The path to a file, including DLLs, that contains a grammar specification.
- ruleName
-
Type:
System::String^
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
-
Type:
array<System::Object^>^
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.
| Exception | Condition |
|---|---|
| System::ArgumentException |
|
Parameters for an initialization handler may also be specified.
Available since 3.0