Share via


RecordMessageActivity.RecordingMainPrompt 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 recording phase.

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

Syntax

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

Property Value

A PromptBuilder that contains the main prompt for the recording phase.

Remarks

The ActionMainPrompt property contains the main prompt for the action phase.

Example

The following example shows the implementation of a method that handles the RecordTurnStarting event for a RecordMessageActivity. In this method definition, the recording main prompt is set.

private void recordMessage_RecordTurnStarting(object sender, TurnStartingEventArgs e)
{
  this.recordMessage.RecordingMainPrompt.SetText("Record your message now");
}

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

RecordMessageActivity Class
RecordMessageActivity Members
Microsoft.SpeechServer.Dialog Namespace
RecordMessageActivity.ActionMainPrompt Property