Share via


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

GrammarInfo.Save Method (String)

Saves the information in a GrammarInfo object to the specified file path.

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

Syntax

'Declaration
Public Sub Save ( _
    filePath As String _
)
'Usage
Dim instance As GrammarInfo
Dim filePath As String

instance.Save(filePath)
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 a null reference (Nothing in Visual Basic).

ArgumentException

Thrown when filePath is an empty string.

See Also

Reference

GrammarInfo Class

GrammarInfo Members

Save Overload

Microsoft.Speech.Recognition Namespace