NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TablesCollection.List

Gets the tables in the collection as an object.

[Visual Basic]
Overridable Protected ReadOnly Property List As ObjectList
[C#]
protected ObjectList List {override get;}
[C++]
protected: __property virtual ObjectList* get_List();
[JScript]
protected function get List() : ObjectList;

Property Value

An ObjectList that contains all of tables.

Example [Visual Basic]

The following example uses the List property of a TablesCollection to return an ObjectList.

[Visual Basic]

Private Sub GetObjectList()
   Dim objL As ObjectList
   Dim dSet As DataSet
   ' Get the DataSet from a DataGrid control
   Set dSet As DataGrid1.DataGridTable.DataTable.DataSet
   ' Get the TablesCollection as an ObjectList of the DataSet
   Set objL = dSet.List
   ' Not shown: Use properties and methods of the ObjectList to manipulate the list.
End Sub

See Also

TablesCollection Class | TablesCollection Members | System.Data Namespace | ObjectList