NavigableListActivity.CanBargeIn 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 whether this prompt can be interrupted when the user speaks.
Namespace: Microsoft.SpeechServer.Dialog
Assembly: Microsoft.SpeechServer (in microsoft.speechserver.dll)
Syntax
'Declaration
<GlobalizedDescriptionAttribute("DialogActivityCommon_CanBargeIn")> _
<GlobalizedCategoryAttribute("SpeechCategory")> _
<DefaultValueAttribute(True)> _
Public Property CanBargeIn As Boolean
[GlobalizedDescriptionAttribute("DialogActivityCommon_CanBargeIn")]
[GlobalizedCategoryAttribute("SpeechCategory")]
[DefaultValueAttribute(true)]
public bool CanBargeIn { get; set; }
Property Value
True if the user can interrupt the prompt, causing recognition to start immediately; False if the prompt must complete before recognition begins. The default value is True.
Example
The following example creates a NavigableListActivity instance named browseCities and sets a number of properties on the instance. In the highlighted line of code, CanBargeIn is set to True.
this.browseCities = new Microsoft.SpeechServer.Dialog.NavigableListActivity();
this.browseCities.CanBargeIn = true;
this.browseCities.ConfirmationThreshold = 1F;
this.browseCities.CurrentItem = null;
this.browseCities.DataField = "";
this.browseCities.DataMember = "";
this.browseCities.DataSource = null;
this.browseCities.CompleteTimeout = System.TimeSpan.Parse("00:00:01.5000000");
this.browseCities.InitialSilenceTimeout = System.TimeSpan.Parse("00:00:01.5000000");
this.browseCities.Name = "browseCities";
this.browseCities.UseDefaultGrammars = true;
this.browseCities.ConfirmationTurnStarting += new System.EventHandler<Microsoft.SpeechServer.Dialog.TurnStartingEventArgs>(this.browseCities_ConfirmationTurnStarting);
this.browseCities.TurnStarting += new System.EventHandler<Microsoft.SpeechServer.Dialog.SelectionTurnStartingEventArgs>(this.browseCities_TurnStarting);
this.Activities.Add(this.browseCities);
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
NavigableListActivity Class
NavigableListActivity Members
Microsoft.SpeechServer.Dialog Namespace
NavigableListActivity.CanBargeInProperty Field