Share via


AllowCommands Property for French (Canada)

  Microsoft Speech Technologies Homepage

Gets or sets the AllowCommands property of QA controls that are created by the control. Read/write.

Usage

ASP.NET markup: <speech:ApplicationControl AllowCommands="..." />
Get value: Boolean = ApplicationControl.AllowCommands;
Set value: ApplicationControl.AllowCommands = Boolean;
Data type: System.Boolean
Required: No; Default: True

Remarks

See QA.AllowCommands.

Example

The following example demonstrates the AllowCommands property that is used in the CreditCardNumber Application Speech Control.

<form id="Form1" method="post" runat="server">
  ...
  <speech:CreditCardNumber 
    ID="GetCreditCardNumber" 
    SemanticItem="siCreditCardNumber"
    QuestionPrompt="rentrer les 16 chiffres de votre numéro de carte de crédit diners club s'il-vous-plaît" 
    AutoPostBack="True"
    AllowAmex="False"
    AllowDinersClub="True" 
    AllowDiscover="False" 
    AllowMasterCard="False"
    AllowVISA="False" 
    AllowCommands="True" 
    runat="server">
  </speech:CreditCardNumber>

  <speech:CreditCardDate 
    ID="GetCreditCardDate"     
    QuestionPrompt="quel est la date d'expiration?" 
    AutoPostBack="True"
    YearSemanticItem="siCreditCardYear"
    MonthSemanticItem="siCreditCardMonth"
    AllowCommands="False" 
    runat="server">
  </speech:CreditCardDate>

  <Speech:command ID="CmdHelp" Scope="Form1" Type="Help" 
    XPathTrigger="/SML/Command/Help" runat="server" >
    <grammar ID="CmdHelp" src="Grammars/Commands.grxml" runat="server" />
  </Speech:command>
  ...
</form>

See Also

ApplicationControl Class | ApplicationControl Constructor | ApplicationControl Members | ApplicationControl Properties | ApplicationControl Methods | ApplicationControl Events | ApplicationControl Remarks