Save Method (Stream)

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

Saves the information in a GrammarInfo object to the specified stream.

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

Syntax

Visual Basic (Declaration)
Public Sub Save ( _
	stream As Stream _
)
Visual Basic (Usage)
Dim instance As GrammarInfo
Dim stream As Stream

instance.Save(stream)
C#
public void Save(
	Stream stream
)

Parameters

stream
Type: System.IO..::..Stream

The stream to which to save the information.

Exceptions

ExceptionCondition
ArgumentNullException

Thrown when stream is nullNothingnullptrunita null reference (Nothing in Visual Basic).

InvalidOperationException

Thrown when there is an error saving to the given stream.

See Also