Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
ExitReason Enumeration
Contains a list of reasons that indicate why a Browser instance exited from a VoiceXML page.
Namespace: Microsoft.Speech.VoiceXml.Common
Assembly: Microsoft.Speech.VoiceXml (in Microsoft.Speech.VoiceXml.dll)
Syntax
'Declaration
Public Enumeration ExitReason
'Usage
Dim instance As ExitReason
public enum ExitReason
Members
Member name | Description | |
---|---|---|
None | No exit reason is given. | |
HostExitRequested | The application called the StopAsync() method. | |
ExitElementEncountered | The VoiceXML interpreter encountered and processed an <exit> element on a VoiceXML page. | |
DialogEndEncountered | The VoiceXML interpreter arrived at the end of a dialog and there was no successor element. | |
UnhandledPageException | An exception is thrown in processing the VoiceXML page that is not handled by the VoiceXML <error> element. | |
MalFormedXml | The Browser encountered errors in the syntax or structure of the VoiceXML page. | |
ServerNotAvailable | The server that contains the VoiceXML start page could not be contacted. | |
AudioTerminated | The audio that was present at the input connection can no longer be detected. | |
PageNotFound | The page specified by the URI parameter in a Run(Uri, CookieContainer) or RunAsync(Uri, CookieContainer) method could not be retrieved. | |
UnknownExit | The reason for the exit could not be determined. |
Remarks
The Reason property of the VoiceXmlResult class gets the ExitReason when the Browser exits a VoiceXML page. For synchronous Browser instances, the VoiceXmlResult is returned by the Run(Uri, CookieContainer) method. For asynchronous Browser instances, initiated with the RunAsync(Uri, CookieContainer) method, the SessionCompletedEventArgs class contains the VoiceXmlResult.