SpeechSequenceActivity Class
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.
Represents a workflow activity that supports commands as well as goto execution semantics.
Namespace: Microsoft.SpeechServer.Dialog
Assembly: Microsoft.SpeechServer (in microsoft.speechserver.dll)
Syntax
'Declaration
<GlobalizedCategoryAttribute("MSSCategory")> _
<GlobalizedDescriptionAttribute("SpeechSequenceActivity")> _
<ToolboxBitmapAttribute(GetType(SpeechSequenceActivity))> _
<DesignerAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.SpeechSequenceActivityDesigner, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", GetType(IDesigner))> _
<ActivityValidatorAttribute(GetType(SpeechSequenceActivityValidator))> _
Public Class SpeechSequenceActivity
Inherits SequenceActivity
Implements IActivityEventListener(Of ActivityExecutionStatusChangedEventArgs), IActivityEventListener(Of QueueEventArgs)
[GlobalizedCategoryAttribute("MSSCategory")]
[GlobalizedDescriptionAttribute("SpeechSequenceActivity")]
[ToolboxBitmapAttribute(typeof(SpeechSequenceActivity))]
[DesignerAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.SpeechSequenceActivityDesigner, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", typeof(IDesigner))]
[ActivityValidatorAttribute(typeof(SpeechSequenceActivityValidator))]
public class SpeechSequenceActivity : SequenceActivity, IActivityEventListener<ActivityExecutionStatusChangedEventArgs>, IActivityEventListener<QueueEventArgs>
Remarks
A SpeechSequenceActivity consists of at most one CommandsActivity object as a child activity. Any other child activities are considered to be part of the sequence main flow.
A goto can occur from any point in the main flow or command flow; however, the target of the GoToActivity must be an immediate child in the main flow.
Warning
If you define a class that inherits from SpeechSequenceActivity, do not call System.Workflow.ComponentModel.Activity.GetActivityByName from within the constructor of your class. Doing so causes a stack overflow that ultimately causes Visual Studio 2005 to crash.
Inheritance Hierarchy
System.Object
???? System.Workflow.ComponentModel.DependencyObject
???????? System.Workflow.ComponentModel.Activity
???????????? System.Workflow.ComponentModel.CompositeActivity
???????????????? System.Workflow.Activities.SequenceActivity
????????????????????Microsoft.SpeechServer.Dialog.SpeechSequenceActivity
???????????????????????? Microsoft.SpeechServer.Dialog.CommandActivity
???????????????????????? Microsoft.SpeechServer.Dialog.SpeechEventActivity
???????????????????????? Microsoft.SpeechServer.Dialog.SpeechSequentialWorkflowActivity
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 Members
Microsoft.SpeechServer.Dialog Namespace