SpeechSequenceActivity.Cancel Method
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Cancels the activity.
Namespace: Microsoft.SpeechServer.Dialog
Assembly: Microsoft.SpeechServer (in microsoft.speechserver.dll)
Syntax
'Declaration
Protected Overrides Function Cancel ( _
executionContext As ActivityExecutionContext _
) As ActivityExecutionStatus
protected override ActivityExecutionStatus Cancel (
ActivityExecutionContext executionContext
)
Parameters
- executionContext
The execution context for the activity.
Return Value
One of the values shown in the following table:
Value |
Description |
System.Workflow.ComponentModel.ActivityExecutionStatus.Canceling |
A child in the main flow is active (its status is System.Workflow.ComponentModel.ActivityExecutionStatus.Executing) and is a CommandsActivity or SpeechEventsActivity. |
System.Workflow.ComponentModel.Activity.ExecutionStatus |
An child in the main flow is not active (its status is a value other than System.Workflow.ComponentModel.ActivityExecutionStatus.Executing) and is a CommandsActivity or SpeechEventsActivity. |
System.Workflow.ComponentModel.ActivityExecutionStatus.Canceling |
The main flow has finished executing, but at least one secondary flow is still executing. |
System.Workflow.ComponentModel.ActivityExecutionStatus.Closed |
There are no remaining execution contexts. |
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | executionContext is null. |
Thread Safety
All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition
Target Platforms
Windows Server 2003
See Also
Reference
SpeechSequenceActivity Class
SpeechSequenceActivity Members
Microsoft.SpeechServer.Dialog Namespace