Share via


ApplicationControl.ConfirmRejectThreshold Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Gets or sets the recognition confidence level at or below which a confirmation is rejected. Read/write.

Namespace: Microsoft.Speech.Web.UI
Assembly: Microsoft.Speech.Web (in microsoft.speech.web.dll)

Syntax

'Declaration
<SRDescriptionAttribute("All_ConfirmRejectThreshold")> _
<BindableAttribute(True)> _
<SRCategoryAttribute("Category_Speech")> _
<DefaultValueAttribute(0)> _
Public Property ConfirmRejectThreshold As Single
[SRDescriptionAttribute("All_ConfirmRejectThreshold")] 
[BindableAttribute(true)] 
[SRCategoryAttribute("Category_Speech")] 
[DefaultValueAttribute(0)] 
public float ConfirmRejectThreshold { get; set; }

Remarks

The ConfirmRejectThreshold property is usually higher than the RejectThreshold property that applies to all other answers. This property is passed to all the relevant internal confirm answer elements created by this control. The control throws an exception for out-of-range values.

Example

The following example demonstrates the ConfirmRejectThreshold property that is used in the SocialSecurityNumberApplication Speech Control.

<form id="Form1" method="post" runat="server">
  ...
  <speech:semanticmap id="SemanticMap1" runat="server">
      <speech:SemanticItem id="SemItemSSN" runat="server" BindOnChanged="True"
        TargetElement="TextBoxYear" TargetAttribute="value" >
      </speech:SemanticItem>
  </speech:semanticmap>

  <speech:SocialSecurityNumber id="SSN1" runat="server"
    QuestionPrompt="What is your Social Security Number?" 
    Separator="-"
    FirstInitialTimeout="0"
    EndSilence="2500"
    BabbleTimeout="2500" InitialTimeout="2500"  MaxTimeout="5000"
    ConfirmThreshold="0.5" RejectThreshold="0.5" ConfirmRejectThreshold="0.6" 
    SemanticItem="SemItemSSN">
  </speech:SocialSecurityNumber>

  <asp:TextBox id="TextBox1" runat="server"></asp:TextBox>
  ...
</form>

Thread Safety

All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition

Target Platforms

Windows Server 2003

See Also

Reference

ApplicationControl Class
ApplicationControl Members
Microsoft.Speech.Web.UI Namespace