Partager via


ConsecutiveNoRecognitionsSpeechEventActivity 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 ConsecutiveNoRecognitionsSpeechEventActivity 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 ConsecutiveNoRecognitionsSpeechEventActivity (
    string name
)

Parameters

  • name
    The name of the instance.

Exceptions

Exception type Condition
ArgumentNullException

name is null.

Example

The following example creates a named ConsecutiveNoRecognitionsSpeechEventActivity instance and adds two other objects to the Activities property on the instance. The example then sets MaximumNoRecognitions to 3 (its default value), sets Name, and adds the instance to the Activities property on the enclosing activity.

this.consecutiveNoRecos = new Microsoft.SpeechServer.Dialog.ConsecutiveNoRecognitionsSpeechEventActivity("ConsecutiveNoRecognitions");
this.consecutiveNoRecos.Activities.Add(this.NoRecoTriesExceeded);
this.consecutiveNoRecos.Activities.Add(this.ConsecutiveNoRecognitionGoToOneMoment);
this.consecutiveNoRecos.MaximumNoRecognitions = 3;
this.OrderStatusSpeechEventsActivity.Activities.Add(this.consecutiveNoRecos);

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

ConsecutiveNoRecognitionsSpeechEventActivity Class
ConsecutiveNoRecognitionsSpeechEventActivity Members
Microsoft.SpeechServer.Dialog Namespace
ConsecutiveNoRecognitionsSpeechEventActivity Class
MaximumNoRecognitions