Gets the TableSetting in the collection at the specified index.
[C#] In C#, this member is the indexer for the TableSettingsCollection class.
[Visual Basic] Overloads Overridable Public Default ReadOnly Property Item( _ ByVal index As Integer _ ) As TableSetting [C#] public TableSetting this[ int index ] {virtual get;} [C++] public: __property virtual TableSetting* get_Item( int index ); [JScript] returnValue = TableSettingsCollectionObject.Item(index); -or- returnValue = TableSettingsCollectionObject(index);
[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.
The TableSetting at the specified index.
Exception Type | Condition |
---|---|
IndexOutOfRange(System.String) | The collection doesn't have a TableSetting at this index. |
The following example gets a TableSetting using a specified index.
[Visual Basic]
Private Sub GetTableSettingByIndex() Dim ts As TableSetting ts = myDataSetView.TableSettings(3) Debug.Print ts.RowFilter End Sub
TableSettingsCollection Class | TableSettingsCollection Members | System.Data Namespace | TableSettingsCollection.Item Overload List