Dela via


SpeechSequentialWorkflowActivity.QueryString 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 a NameValueCollection that contains the parsed query string parameters for this application.

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

Syntax

'Declaration
<GlobalizedCategoryAttribute("NonDesignableCategory")> _
<ReadOnlyAttribute(True)> _
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> _
<BrowsableAttribute(True)> _
<EditorAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.BlankUITypeEditor, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", GetType(UITypeEditor))> _
<TypeConverterAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.NonDesignableStringConverter, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")> _
<GlobalizedDescriptionAttribute("SpeechSequentialWorkflowActivity_QueryString")> _
Public ReadOnly Property QueryString As NameValueCollection
[GlobalizedCategoryAttribute("NonDesignableCategory")] 
[ReadOnlyAttribute(true)] 
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)] 
[BrowsableAttribute(true)] 
[EditorAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.BlankUITypeEditor, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", typeof(UITypeEditor))] 
[TypeConverterAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.NonDesignableStringConverter, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")] 
[GlobalizedDescriptionAttribute("SpeechSequentialWorkflowActivity_QueryString")] 
public NameValueCollection QueryString { get; }

Property Value

A System.Collections.Specialized.NameValueCollection that contains the parsed query string parameters for this application if successful; otherwise null.

Example

The following example shows the implementation of reminder_TurnStarting, a handler for the TurnStarting event on a StatementActivity. Within this method, the QueryString is used three times. In the first use, the language is set to the value associated in the query string with the key "lang." In the second and third uses, artist and title are set, respectively, to the values associated with the keys "artist" and "title."

/// <summary>
/// Sets the prompt.
/// </summary>
/// <param name="sender">The source of the event</param>
/// <param name="e">The description of the event</param>
private void reminder_TurnStarting(object sender, TurnStartingEventArgs e)
{
  SetLanguage(QueryString["lang"]);

  string artist = Uri.UnescapeDataString(QueryString["artist"]);
  string title = Uri.UnescapeDataString(QueryString["title"]);

  reminder.MainPrompt.AppendBreak(0);
  reminder.MainPrompt.ClearContent();
  reminder.MainPrompt.AppendSsmlMarkup(string.Format(_resourceManager.GetString("notification"), artist, title));
  reminder.MainPrompt.AppendBreak(0);
}

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

SpeechSequentialWorkflowActivity Class
SpeechSequentialWorkflowActivity Members
Microsoft.SpeechServer.Dialog Namespace