Unloads the specified Grammar object from the DtmfRecognitionEngine instance.
Namespace:
Microsoft.Speech.Recognition
Assembly:
Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub UnloadGrammar ( _ grammar As Grammar _ ) |
Visual Basic (Usage) |
---|
Dim instance As DtmfRecognitionEngine Dim grammar As Grammar instance.UnloadGrammar(grammar) |
C# |
---|
public void UnloadGrammar( Grammar grammar ) |
Parameters
- grammar
- Type: Microsoft.Speech.Recognition..::..Grammar
Remarks
An ArgumentException is thrown if the specified Grammar object is not currently loaded in the DtmfRecognitionEngine instance.