![Collapse image Collapse image](collapse_all.gif)
![Expand Image Expand Image](expand_all.gif)
![](collapse_all.gif)
![](expand_all.gif)
![](dropdown.gif)
![](dropdownHover.gif)
![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
![]() ![]() |
GrammarInfoPartsCollection..::..AddEnginePart Method |
GrammarInfoPartsCollection Class See Also Send Feedback |
Adds the part of the engine passed as a parameter to the collection.
Namespace:
Microsoft.Speech.Recognition
Assembly:
Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function AddEnginePart ( _ engine As SpeechRecognitionEngine _ ) As Guid |
Visual Basic (Usage) |
---|
Dim instance As GrammarInfoPartsCollection Dim engine As SpeechRecognitionEngine Dim returnValue As Guid returnValue = instance.AddEnginePart(engine) |
C# |
---|
public Guid AddEnginePart( SpeechRecognitionEngine engine ) |
Parameters
- engine
- Type: Microsoft.Speech.Recognition..::..SpeechRecognitionEngine
A SpeechRecognitionEngine instance.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown if the engine part could not be added for any reason. |