Share via


ApplicationControl.MaxTimeout 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 MaxTimeout property of QA controls that are created by the control. Read/write.

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

Syntax

'Declaration
<SRCategoryAttribute("Category_Speech")> _
<BindableAttribute(True)> _
<SRDescriptionAttribute("All_MaxTimeout")> _
<DefaultValueAttribute(0)> _
Public Property MaxTimeout As Integer
[SRCategoryAttribute("Category_Speech")] 
[BindableAttribute(true)] 
[SRDescriptionAttribute("All_MaxTimeout")] 
[DefaultValueAttribute(0)] 
public int MaxTimeout { get; set; }

Remarks

Example

The following example demonstrates the MaxTimeout property that is used in a PhoneApplication Speech Control.

<script language="jscript">
  //formatting the area code part to look like: (NNN)
  function FormatAC(theValue){ 
    if(theValue == null) 
      return; 
    else { 
      var sAC = "(" + theValue.value + ")"; 
      document.all.tbPhone.value = sAC + document.all.tbPhone.value;
    } 
  } 
  //formatting the area code part to look like: NNN NNNN 
  function FormatLN(theValue){ 
    var sLN = theValue.value; 
    if(sLN == null || sLN.length != 7) 
      return;                 
    else {            
      var re = /(\d{3})(\d{4})/;                   
      var aMatchCollection = sLN.match(re);                     
      sLN = aMatchCollection[1] + " " + aMatchCollection[2]; 
      document.all.tbPhone.value = document.all.tbPhone.value + " " + sLN;                   
    } 
  } 
  //formatting the extension part to look like: xNNNN
  function FormatEXT(theValue){ 
    if(theValue.value == "") 
      return; 
    else { 
      var sEXT = "x" + theValue.value; 
      document.all.tbPhone.value = document.all.tbPhone.value + " " + sEXT;                     
    } 
  } 
</script>

<form id="formPhone" method="post" runat="server">
  ...
  <asp:textbox id="tbPhone" runat="server" borderstyle="Solid">
  </asp:textbox>
  <asp:panel ID="SpeechPanel" runat="server">
    <speech:SemanticMap runat="server">
      <speech:SemanticItem ID="siAC"  onclientconfirmed="FormatAC" runat="server">
      </speech:SemanticItem>
      <speech:SemanticItem ID="siLN"  onclientconfirmed="FormatLN" runat="server">
      </speech:SemanticItem>
      <speech:SemanticItem ID="siEXT" onclientconfirmed="FormatEXT" runat="server">
      </speech:SemanticItem>
    </speech:SemanticMap>

    <speech:Phone ID="PhoneQA" 
      QuestionPrompt="What is your phone number?" 
      AreaCodeSemanticItem="siAC" 
      LocalNumberSemanticItem="siLN" 
      ExtensionSemanticItem="siEXT" 
      BabbleTimeout="10000" 
      FirstInitialTimeout="1000" 
      InitialTimeout="3000" 
      MaxTimeout="30000"
      RejectThreshold="0.2" 
      runat="server">
    </speech:Phone>

  </asp:panel>
  ...
</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