SpeechRecognizer.Close Method

Definition

Disposes the speech recognizer by freeing, releasing, or resetting allocated resources.

public:
 virtual void Close() = Close;
void Close();
// This member is not implemented in C#
function close()
' This member is not implemented in VB.NET

Implements

M:Windows.Foundation.IClosable.Close M:System.IDisposable.Close

Exceptions

Thrown if either <xref:Windows.Media.SpeechRecognition.SpeechRecognizer.RecognizeAsync?text=RecognizeAsync> or <xref:Windows.Media.SpeechRecognition.SpeechRecognizer.RecognizeWithUIAsync?text=RecognizeWithUIAsync> is in progress.

Remarks

If a SpeechContinuousRecognitionSession is underway, Close is functionally equivalent to calling CancelAsync.

Applies to

See also