SpeechContinuousRecognitionSession.CancelAsync SpeechContinuousRecognitionSession.CancelAsync SpeechContinuousRecognitionSession.CancelAsync SpeechContinuousRecognitionSession.CancelAsync SpeechContinuousRecognitionSession.CancelAsync Method

Definition

Asynchronously cancel the continuous speech recognition session and discard all pending recognition results.

public : IAsyncAction CancelAsync()
IAsyncAction CancelAsync() const;
public IAsyncAction CancelAsync()
Public Function CancelAsync() As IAsyncAction
Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession.cancelAsync().done( /* Your success and error handlers */ );

Returns

An asynchronous handler called when the operation is complete.

Remarks

A ResultGenerated event can occur after a call to CancelAsync if it exists on the stack when the call is made.

StopAsync passes pending results to the ResultGenerated event.

See also