







Saves the information in a GrammarInfo object to the specified file path.
Namespace:
Microsoft.Speech.Recognition
Assembly:
Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub Save ( _ filePath As String _ ) |
Visual Basic (Usage) |
---|
Dim instance As GrammarInfo Dim filePath As String instance.Save(filePath) |
C# |
---|
public void Save( string filePath ) |
Parameters
- filePath
- Type: System..::..String
The path to the file that will receive the information.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown when there is an error saving to the specified file path. |
ArgumentNullException | Thrown when filePath is nullNothingnullptrunita null reference (Nothing in Visual Basic). |
ArgumentException | Thrown when filePath is an empty string. |