Partilhar via


CommandRules Property for French (Canada)

  Microsoft Speech Technologies Homepage

Gets a collection of CommandRule objects that can enable, disable or redefine the navigation commands of the control. Read-only.

Usage

Get value: CommandRuleCollection = DataTableNavigator.CommandRules;
Set value: Read-only
Data type: CommandRuleCollection

Remarks

The CommandRules property is a CommandRuleCollection containing one or more CommandRule objects.

Example

In the following example, the CommandRules property contains a CommandRule control that disables the Read command.

<form id="Form1" method="post" runat="server">
  ...
    <asp:textbox id="TextBox1" runat="server"></asp:textbox>
    <speech:semanticmap id="SemanticMap1" runat="server" >
      <speech:SemanticItem id="SemItemNav" runat="server" 
        TargetElement="TextBox1" TargetAttribute="value" BindOnChanged="True">
      </speech:SemanticItem>
    </speech:semanticmap>

    <speech:DataTableNavigator 
      id="Navigator1"  
      QuestionPrompt="météo par état" 
      DataHeaderFields="ville,état"
      DataContentFields="minimum,maximum,conditions" 
      EndSilence="2500" 
      AccessMode="Select" 
      <CommandRules>
        <speech:CommandRule Type="Read" Active="false" />
      </CommandRules>
      ShortInitialTimeout="2000" 
      SemanticItem="SemItemNav"
      runat="server">
    </speech:DataTableNavigator>
  ...
</form>

See Also

DataTableNavigator Class | DataTableNavigator Constructor | DataTableNavigator Members | DataTableNavigator Properties | DataTableNavigator Methods | DataTableNavigator Events | DataTableNavigator Remarks | DataTableNavigator Client Object