Partilhar via


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

GrammarInfoPartsCollection.AddEnginePart Method

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

'Declaration
Public Function AddEnginePart ( _
    engine As SpeechRecognitionEngine _
) As Guid
'Usage
Dim instance As GrammarInfoPartsCollection
Dim engine As SpeechRecognitionEngine
Dim returnValue As Guid

returnValue = instance.AddEnginePart(engine)
public Guid AddEnginePart(
    SpeechRecognitionEngine engine
)

Parameters

Return Value

Type: System.Guid
A Guid that is associated with the added engine part.

Exceptions

Exception Condition
InvalidOperationException

Thrown if the engine part could not be added for any reason.

See Also

Reference

GrammarInfoPartsCollection Class

GrammarInfoPartsCollection Members

Microsoft.Speech.Recognition Namespace