Udostępnij za pośrednictwem


SetTaskStatusActivity.TaskName 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 task.

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

Syntax

'Declaration
<DefaultValueAttribute(Nothing)> _
<GlobalizedCategoryAttribute("SpeechCategory")> _
<GlobalizedDescriptionAttribute("SetTaskStatusActivity_TaskName")> _
<TypeConverterAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.TaskNameConverter, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")> _
Public Property TaskName As String
[DefaultValueAttribute(null)] 
[GlobalizedCategoryAttribute("SpeechCategory")] 
[GlobalizedDescriptionAttribute("SetTaskStatusActivity_TaskName")] 
[TypeConverterAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.TaskNameConverter, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")] 
public string TaskName { get; set; }

Property Value

The name of the task.

Example

The following example creates a SetTaskStatusActivity instance and sets the Name, TaskName, and TaskStatus properties on the instance.

this.SetUserInputFailed = new Microsoft.SpeechServer.Dialog.SetTaskStatusActivity();
this.SetUserInputFailed.Name = "SetUserInputFailed";
this.SetUserInputFailed.TaskName = "CollectUserInput";
this.SetUserInputFailed.TaskStatus = Microsoft.SpeechServer.TaskStatus.Failure;
this.UserInputFailed.Activities.Add(this.SetUserInputFailed);

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

SetTaskStatusActivity Class
SetTaskStatusActivity Members
Microsoft.SpeechServer.Dialog Namespace
SetTaskStatusActivity.TaskNameProperty Field
TaskStatus