SpeechContinuousRecognitionSession.CancelAsync Method

Definition

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

public:
 virtual IAsyncAction ^ CancelAsync() = CancelAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction CancelAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction CancelAsync();
function cancelAsync()
Public Function CancelAsync () As IAsyncAction

Returns

IAsyncAction

An asynchronous handler called when the operation is complete.

Attributes

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.

Applies to

See also