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 (Int32)

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.

Arguments [JScript]

index
The zero-based index of the TableSetting to return.

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

index
The zero-based index of the TableSetting to return.

Property Value

The TableSetting at the specified index.

Exceptions

Exception Type Condition
IndexOutOfRange(System.String) The collection doesn't have a TableSetting at this index.

Example [Visual Basic]

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

See Also

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