Compartir a través de


SemanticItem Property for French (Canada)

  Microsoft Speech Technologies Homepage

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

Usage

ASP.NET markup: <speech:AlphaDigit SemanticItem="..." />
Get value: String = AlphaDigit.SemanticItem;
Set value: AlphaDigit.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.

Attribute data

When the AlphaDigit control has collected an alpha-numeric string successfully, it places the following attribute in the SemanticItem property.

Attribute Name Data Element
spokenText The alpha-numeric value spoken by the user

Application authors can reference SemanticItem attribute data by means of the GetAttribute method of the client-side SemanticItem object.

Example

The following example demonstrates an AlphaDigit control with an InputMask property that specifies a six-digit numeric field.

<form id="Form1" method="post" runat="server">
  ...
  <speech:SemanticMap id="SemanticMap1" runat="server">
    <speech:SemanticItem ID="siPIN" SensitiveData="true" autopostback="true" runat="server">
    </speech:SemanticItem>
  </speech:SemanticMap>

  <Speech:AlphaDigit id="AskPIN" 
    QuestionPrompt="rentrer les six chiffres de votre numéro d'identification personnel s'il-vous-plaît"
    QuestionPrompt=" "
    BargeIn="True" 
    SemanticItem="siPIN" 
    InputMask="DDDDDD" 
    Grouping="True"
    ConfirmThreshold="0" 
    AllowDtmf="true" 
    runat="server">
  </Speech:AlphaDigit>
  ...
</form>

See Also

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