NavigableListActivity.DataBind Method
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.
Binds the NavigableListActivity to the data source.
Namespace: Microsoft.SpeechServer.Dialog
Assembly: Microsoft.SpeechServer (in microsoft.speechserver.dll)
Syntax
'Declaration
Public Sub DataBind
public void DataBind ()
Exceptions
Exception type | Condition |
---|---|
InvalidOperationException | The NavigableListActivity is not idle and does not allow data binding. |
ArgumentException | The number of elements in Items is zero. |
Remarks
Before DataBind returns, it sets CurrentItem to zero.
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
DataSource