共用方式為


SpeechRecognizer.Close 方法

定義

釋放、釋放或重設配置的資源,以處置語音辨識器。

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

實作

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

例外狀況

如果 < xref:Windows.Media.SpeechRecognition.SpeechRecognizer.RecognizeAsync?text=RecognizeAsync > 或 < xref:Windows.Media.SpeechRecognition.SpeechRecognizer.RecognizeWithUIAsync?text=RecognizeWithUIAsync > 正在進行中,則會擲回 。

備註

如果 SpeechContinuousRecognitionSession 正在進行中,Close 的功能相當於呼叫 CancelAsync

適用於

另請參閱