Share via


ApplicationControl.ConfirmThreshold 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 minimum level of recognition confidence necessary to mark an item as confirmed. Read/write.

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

Syntax

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

Remarks

The ConfirmThreshold property gets or sets the minimum confidence level of recognition necessary to mark an item as confirmed. Values can range from 0 to 1. The default is 1. By default, confirmation is always performed. This property is passed to all the internal QA controls created by this control.

The control throws an exception for out-of-range values.

Example

The following example demonstrates the ConfirmThreshold property that is used in a DateApplication Speech Control.

<form id="Form1" method="post" runat="server">
  ...
  <speech:date 
    id="Date1" 
    QuestionPrompt="When would you like to travel?" 
    DateContext="Future"
    AllowHolidays="True"
    AllowNumeralDates="True"
    AllowRelativeDates="True"
    DaySemanticItem="DaySemItem" 
    MonthSemanticItem="MonthSemItem"
    YearSemanticItem="YearSemItem" 
    BabbleTimeout="2500" InitialTimeout="2500"  MaxTimeout="5000"
    ConfirmThreshold="0.5" RejectThreshold="0.5" ConfirmRejectThreshold="0.6" 
    OnClientActive="MyClientActive"
    runat="server">
  </speech:date>
  ...
</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