CommandActivity Class
Represents a digression in the dialog. A command is matched when the user speaks a phrase recognized by the command's grammar. It is different from a DialogEventActivity in that regard. A DialogEventActivity represents a system-initiated event in the dialog flow, while a CommandActivity represents a user-initiated event and the associated handler for the event. The CommandActivity provides the event-subscription data, and the children of the CommandActivity provide the handler logic for the event. Deriving from the CommandActivity is not supported, as it is used by other command activities.
Inheritance Hierarchy
System.Object
System.Workflow.ComponentModel.DependencyObject
System.Workflow.ComponentModel.Activity
System.Workflow.ComponentModel.CompositeActivity
System.Workflow.Activities.SequenceActivity
Microsoft.Rtc.Workflow.Activities.CommunicationsSequenceActivity
Microsoft.Rtc.Workflow.Activities.CommandActivity
Microsoft.Rtc.Workflow.Activities.InstantMessagingCommandActivity
Microsoft.Rtc.Workflow.Activities.SpeechCommandActivity
Namespace: Microsoft.Rtc.Workflow.Activities
Assembly: Microsoft.Rtc.Workflow (in Microsoft.Rtc.Workflow.dll)
Syntax
'Declaration
Public MustInherit Class CommandActivity _
Inherits CommunicationsSequenceActivity _
Implements IEventActivity, IInstanceDependencyContainer
'Usage
Dim instance As CommandActivity
public abstract class CommandActivity : CommunicationsSequenceActivity,
IEventActivity, IInstanceDependencyContainer
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.