







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
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown when stream is nullNothingnullptrunita null reference (Nothing in Visual Basic). |
| InvalidOperationException | Thrown when there is an error saving to the given stream. |
