Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
GrammarInfo.Save Method (Stream)
Saves the information in a GrammarInfo object to the specified stream.
Namespace: Microsoft.Speech.Recognition
Assembly: Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
'Declaration
Public Sub Save ( _
stream As Stream _
)
'Usage
Dim instance As GrammarInfo
Dim stream As Stream
instance.Save(stream)
public void Save(
Stream stream
)
Parameters
- stream
Type: System.IO.Stream
The stream to which to save the information.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when stream is a null reference (Nothing in Visual Basic). |
InvalidOperationException | Thrown when there is an error saving to the given stream. |