Udostępnij za pośrednictwem


NavigableListActivity.ConfirmationMainPrompt 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 the main prompt for the confirmation phase.

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

Syntax

'Declaration
<GlobalizedDescriptionAttribute("DialogActivityCommon_ConfirmationMainPrompt")> _
<BrowsableAttribute(False)> _
<GlobalizedCategoryAttribute("SpeechCategory")> _
Public ReadOnly Property ConfirmationMainPrompt As PromptBuilder
[GlobalizedDescriptionAttribute("DialogActivityCommon_ConfirmationMainPrompt")] 
[BrowsableAttribute(false)] 
[GlobalizedCategoryAttribute("SpeechCategory")] 
public PromptBuilder ConfirmationMainPrompt { get; }

Property Value

The main prompt for the confirmation phase.

Remarks

The MainPrompt property contains the main prompt for the navigation (or get) phase.

Example

The following example shows an implementation of an event handler for the ConfirmationTurnStarting event. In this implementation the confirmation main prompt is cleared, after which a string that restates the response of the user is appended to it.

private void browseCities_ConfirmationTurnStarting(object sender, TurnStartingEventArgs e)
{
  this.browseCities.ConfirmationMainPrompt.ClearContent();
  this.browseCities.ConfirmationMainPrompt.AppendText(string.Format("You said {0}, is that right?", this.browseCities.Items[(int)this.browseCities.CurrentItem]));
}

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

NavigableListActivity Class
NavigableListActivity Members
Microsoft.SpeechServer.Dialog Namespace
MainPrompt
ConfirmationTurnStarting