Udostępnij za pośrednictwem


GoToActivity.TargetActivityName 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 name of the target, or destination, activity.

Namespace: Microsoft.SpeechServer.Dialog
Assembly: Microsoft.SpeechServer (in microsoft.speechserver.dll)

Syntax

'Declaration
<PropertyBuilderTabAttribute(0, "Tab_TargetActivity")> _
<PropertyEditorPanelAttribute("GoToTargetPanel")> _
<GlobalizedDescriptionAttribute("GoToActivity_TargetActivityName")> _
<DesignerButtonAttribute(0, "Designer_SelectTarget", "GoToTarget", ConvertMethod:="FromString")> _
<EditorAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.GenericSpeechUITypeEditor, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", GetType(UITypeEditor))> _
<DefaultValueAttribute(Nothing)> _
<GlobalizedCategoryAttribute("SpeechCategory")> _
Public Property TargetActivityName As String
[PropertyBuilderTabAttribute(0, "Tab_TargetActivity")] 
[PropertyEditorPanelAttribute("GoToTargetPanel")] 
[GlobalizedDescriptionAttribute("GoToActivity_TargetActivityName")] 
[DesignerButtonAttribute(0, "Designer_SelectTarget", "GoToTarget", ConvertMethod="FromString")] 
[EditorAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.GenericSpeechUITypeEditor, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", typeof(UITypeEditor))] 
[DefaultValueAttribute(null)] 
[GlobalizedCategoryAttribute("SpeechCategory")] 
public string TargetActivityName { get; set; }

Property Value

A string that contains the name of the target activity.

Exceptions

Exception type Condition
ArgumentNullException

An attempt is made to set TargetActivityName to null.

Example

The following code example creates a new instance of the GoToActivity class and sets the Name and TargetActivityName properties on the instance.

this.gotoSomeActivity = new Microsoft.SpeechServer.Dialog.GoToActivity();
this.gotoSomeActivity.Name = "gotoSomeActivity";
this.gotoSomeActivity.TargetActivityName = "resetRejectionThreshold";

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

GoToActivity Class
GoToActivity Members
Microsoft.SpeechServer.Dialog Namespace
Name
GoToActivity.TargetActivityNameProperty Field