Partilhar via


CommandActivity.Grammar Property

Gets or sets the grammar used to recognize the input that triggers this CommandActivity. A Grammar object provides run time support for obtaining and managing speech grammar information.

Namespace:  Microsoft.Rtc.Workflow.Activities
Assembly:  Microsoft.Rtc.Workflow (in Microsoft.Rtc.Workflow.dll)

Syntax

'Declaration
Public Property Grammar As Grammar
    Get
    Set
'Usage
Dim instance As CommandActivity
Dim value As Grammar

value = instance.Grammar

instance.Grammar = value
public Grammar Grammar { get; set; }

Property Value

Type: Microsoft.Speech.Recognition.Grammar
The grammar used to recognize the Command.

See Also

Reference

CommandActivity Class

CommandActivity Members

Microsoft.Rtc.Workflow.Activities Namespace