Share via


SemanticItem Property for French (Canada)

  Microsoft Speech Technologies Homepage

Gets or sets the ID of the SemanticItem control receiving the value. Read/write.

Usage

ASP.NET markup: <speech:YesNo SemanticItem="..." />
Get value: String = YesNo.SemanticItem;
Set value: YesNo.SemanticItem = String;
Data type: String
Required: Yes

Remarks

The control throws an ArgumentNullException if this property is not specified or an ArgumentException if this property does not specify a valid SemanticItem on the page.

Example

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

  <speech:YesNo id="YesNo1" runat="server"
    QuestionPrompt="voulez-vous faire une autre réservation?" 
    SemanticItem="SemItemYesNo" 
    BargeIn="False"
    OptionalPostAnswerRule="PostRule" 
    OptionalRulesGrammarUrl="Optional.grxml">
  </speech:YesNo>
  ...
</form>

See Also

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