Delen via


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 href="Windows.Media.SpeechRecognition.SpeechRecognizer.RecognizeAsync?text=RecognizeAsync" /> or <xref href="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