LoadGrammar Method

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

Synchronously loads the specified Grammar object into the DtmfRecognitionEngine instance.

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

Syntax

Visual Basic (Declaration)
Public Sub LoadGrammar ( _
	grammar As Grammar _
)
Visual Basic (Usage)
Dim instance As DtmfRecognitionEngine
Dim grammar As Grammar

instance.LoadGrammar(grammar)
C#
public void LoadGrammar(
	Grammar grammar
)

Remarks

The LoadGrammar(Grammar) method will block execution while the Grammar is being loaded. For instant return, use the LoadGrammarAsync(Grammar) method.

See Also