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.

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
public abstract class CommandActivity : CommunicationsSequenceActivity, 
    IEventActivity, IInstanceDependencyContainer
public ref class CommandActivity abstract : public CommunicationsSequenceActivity, 
    IEventActivity, IInstanceDependencyContainer
Microsoft.Rtc.Workflow.Activities.CommandActivity = function();

Type.createClass(
    'Microsoft.Rtc.Workflow.Activities.CommandActivity',
    Microsoft.Rtc.Workflow.Activities.CommunicationsSequenceActivity,
    IEventActivity,
    Microsoft.Rtc.Workflow.Activities.IInstanceDependencyContainer);

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

See Also

CommandActivity Members

Microsoft.Rtc.Workflow.Activities Namespace