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!

TableSettingsCollection.Item (DataTable)

Gets the TableSetting in the collection associated with the specified DataTable.

[C#] In C#, this member is the indexer for the TableSettingsCollection class.

[Visual Basic]
Overloads Overridable Public Default ReadOnly Property Item( _
   ByVal table As DataTable _
) As TableSetting
[C#]
public TableSetting this[
   DataTable table
] {virtual get;}
[C++]
public: __property virtual TableSetting* get_Item(
   DataTable* table
);
[JScript]
returnValue = TableSettingsCollectionObject.Item(table);
-or-
returnValue = TableSettingsCollectionObject(table);

[JScript] In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed Item property whose type is Object and whose index type is String.

Arguments [JScript]

table
The DataTable associated with the desired TableSetting.

Parameters [Visual Basic, C#, C++]

table
The DataTable associated with the desired TableSetting.

Example [Visual Basic]

The following example gets the TableSetting associated with the given DataTable.

[Visual Basic]

Private Sub GetTableSetting(dsv As DataSetView)
   Dim t As DataTable
   t = DataSet1.Tables("Customers")
   ' Get the TableSetting from a given DataSetView
   Dim ts As TableSetting
   ts = dsv.TableSettings(t)
   Debug.Print ts.RowFilter
End Sub

See Also

TableSettingsCollection Class | TableSettingsCollection Members | System.Data Namespace | TableSettingsCollection.Item Overload List