UnloadGrammar Method

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

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
)

Remarks

An ArgumentException is thrown if the specified Grammar object is not currently loaded in the DtmfRecognitionEngine instance.

See Also