NavigableListActivity.DataSource 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 source from which the list of items are drawn.
Namespace: Microsoft.SpeechServer.Dialog
Assembly: Microsoft.SpeechServer (in microsoft.speechserver.dll)
Syntax
'Declaration
<ReadOnlyAttribute(True)> _
<GlobalizedCategoryAttribute("DataBindingCategory")> _
<DefaultValueAttribute(Nothing)> _
<GlobalizedDescriptionAttribute("DataBindingCommon_DataSource")> _
<TypeConverterAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.EditFromCodeBesideStringConverter, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")> _
Public Property DataSource As Object
[ReadOnlyAttribute(true)]
[GlobalizedCategoryAttribute("DataBindingCategory")]
[DefaultValueAttribute(null)]
[GlobalizedDescriptionAttribute("DataBindingCommon_DataSource")]
[TypeConverterAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.EditFromCodeBesideStringConverter, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")]
public Object DataSource { get; set; }
Property Value
The source from which the list of items are drawn. The default value is null.
Remarks
DataSource should implement System.Collections.IEnumerable or System.ComponentModel.IListSource.
Example
The following example first creates a string array that contains the names of seven small towns in Washington state. The Workflow method sets DataSource with the name of the array and calls DataBind to bind browseCities to the items in the array.
private string[] Destinations = new string[7] { "Snohomish", "Monroe", "Sultan", "Startup", "Goldbar", "Index", "Skykomish" };
public Workflow()
{
InitializeComponent();
this.browseCities.DataSource = Destinations;
this.browseCities.DataBind();
}
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
NavigableListActivity.DataBind Method
NavigableListActivity.DataSourceProperty Field