ConsecutiveSilencesSpeechEventActivity Constructor (String)
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.
Initializes a new instance of the ConsecutiveSilencesSpeechEventActivity class, specifying a name for the instance.
Namespace: Microsoft.SpeechServer.Dialog
Assembly: Microsoft.SpeechServer (in microsoft.speechserver.dll)
Syntax
'Declaration
Public Sub New ( _
name As String _
)
public ConsecutiveSilencesSpeechEventActivity (
string name
)
Parameters
- name
The name of the instance.
Example
The following example creates a named ConsecutiveSilencesSpeechEventActivity instance and adds two activities to the Activities property on the instance. The example then sets MaximumSilences to 1 (the default value is 3). Finally, the example adds the instance to the Activities property of the enclosing activity.
this.consecutiveSilences = new Microsoft.SpeechServer.Dialog.ConsecutiveSilencesSpeechEventActivity("ConsecutiveSilences");
this.consecutiveSilences.Activities.Add(this.PlayBackToTheMainMenu);
this.consecutiveSilences.Activities.Add(this.ConsecutiveSilencesGoToMainMenu_QA);
this.consecutiveSilences.MaximumSilences = 1;
this.OrderStatusSpeechEventsActivity.Activities.Add(this.consecutiveSilences);
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
ConsecutiveSilencesSpeechEventActivity Class
ConsecutiveSilencesSpeechEventActivity Members
Microsoft.SpeechServer.Dialog Namespace
ConsecutiveSilencesSpeechEventActivity Class
MaximumSilences