StatementActivity 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 StatementActivity 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 StatementActivity (
string name
)
Parameters
- name
The name of the instance.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | name is null. |
Example
The following example creates a named StatementActivity and sets a number of its properties.
this.greetings = new Microsoft.SpeechServer.Dialog.StatementActivity("Greetings");
this.userKnown = new System.Workflow.Activities.IfElseBranchActivity();
this.greetings.CanBargeIn = true;
this.greetings.LogResults = true;
this.greetings.TurnStarting += new System.EventHandler<Microsoft.SpeechServer.Dialog.TurnStartingEventArgs>(this.greetings_TurnStarting);
this.userKnown.Activities.Add(this.greetings);
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
StatementActivity Class
StatementActivity Members
Microsoft.SpeechServer.Dialog Namespace