CommandsActivity 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.

Defines an activity whose children are CommandActivity objects.

Namespace: Microsoft.SpeechServer.Dialog
Assembly: Microsoft.SpeechServer (in microsoft.speechserver.dll)

Syntax

'Declaration
<DesignerAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.CommandsActivityDesigner, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", GetType(IDesigner))> _
<ToolboxBitmapAttribute(GetType(CommandsActivity))> _
<ToolboxItemAttribute(False)> _
<ActivityValidatorAttribute(GetType(CommandsActivityValidator))> _
<AlternateFlowActivityAttribute> _
Public NotInheritable Class CommandsActivity
    Inherits CompositeActivity
    Implements IActivityEventListener(Of ActivityExecutionStatusChangedEventArgs)
[DesignerAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.CommandsActivityDesigner, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", typeof(IDesigner))] 
[ToolboxBitmapAttribute(typeof(CommandsActivity))] 
[ToolboxItemAttribute(false)] 
[ActivityValidatorAttribute(typeof(CommandsActivityValidator))] 
[AlternateFlowActivityAttribute] 
public sealed class CommandsActivity : CompositeActivity, IActivityEventListener<ActivityExecutionStatusChangedEventArgs>

Remarks

A CommandsActivity is active when the SpeechSequenceActivity it belongs to is active. The CommandsActivity listens for messages that indicate that one of its child commands is matched. When a match occurs, the CommandsActivity executes the appropriate command.

Each CommandActivity in a CommandsActivity represents an event/trigger that can occur, as well as a handler for the event.

Inheritance Hierarchy

System.Object
???? System.Workflow.ComponentModel.DependencyObject
???????? System.Workflow.ComponentModel.Activity
???????????? System.Workflow.ComponentModel.CompositeActivity
????????????????Microsoft.SpeechServer.Dialog.CommandsActivity

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

CommandsActivity Members
Microsoft.SpeechServer.Dialog Namespace