AddEnginePart Method

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

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.

Return Value

Type: System..::..Guid

A Guid that is associated with the added engine part.

Exceptions

ExceptionCondition
InvalidOperationException

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

See Also