Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
5 out of 10 rated this helpful - Rate this topic

IList Interface

Represents a collection of objects that can be individually accessed by index.

For a list of all members of this type, see IList Members.

[Visual Basic]
Public Interface IList
   Inherits ICollection, IEnumerable
[C#]
public interface IList : ICollection, IEnumerable
[C++]
public __gc __interface IList : public ICollection, IEnumerable
[JScript]
public interface IList implements ICollection, IEnumerable

Classes that Implement IList

Class Description
Array Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the base class for all arrays in the common language runtime.
ArrayList Implements the IList interface using an array whose size is dynamically increased as required.
CheckedListBox.CheckedIndexCollection Encapsulates the collection of indexes of checked items (including items in an indeterminate state) in a CheckedListBox.
CheckedListBox.CheckedItemCollection Encapsulates the collection of checked items (including items in an indeterminate state) in a CheckedListBox control.
CodeNamespaceImportCollection Represents a collection of CodeNamespaceImport objects.
CollectionBase Provides the abstract (MustInherit in Visual Basic) base class for a strongly typed collection.
ComboBox.ObjectCollection Represents the collection of items in a ComboBox.
Control.ControlCollection Represents a collection of Control objects
DataColumnMappingCollection Contains a collection of DataColumnMapping objects.
DataTableMappingCollection A collection of DataTableMapping objects. This class cannot be inherited.
DataView Represents a databindable, customized view of a DataTable for sorting, filtering, searching, editing, and navigation.
DataViewManager Contains a default DataViewSettingCollection for each DataTable in a DataSet.
EventDescriptorCollection Represents a collection of EventDescriptor objects.
GridColumnStylesCollection Represents a collection of DataGridColumnStyle objects in the System.Windows.Forms.DataGrid control.
GridTableStylesCollection Represents a collection of DataGridTableStyle objects in the DataGrid control.
ImageList.ImageCollection Encapsulates the collection of Image objects in an ImageList.
LinkLabel.LinkCollection Represents the collection of links within a LinkLabel control.
ListBox.ObjectCollection Represents the collection of items in a ListBox.
ListBox.SelectedIndexCollection Represents the collection containing the indexes to the selected items in a ListBox.
ListBox.SelectedObjectCollection Represents the collection of selected items in the ListBox.
ListItemCollection A collection of ListItem objects in a list control. This class cannot be inherited.
ListView.CheckedIndexCollection Represents the collection containing the indexes to the checked items in a list view control.
ListView.CheckedListViewItemCollection Represents the collection of checked items in a list view control.
ListView.ColumnHeaderCollection Represents the collection of column headers in a ListView control.
ListView.ListViewItemCollection Represents the collection of items in a ListView control.
ListView.SelectedIndexCollection Represents the collection containing the indexes to the selected items in a list view control.
ListView.SelectedListViewItemCollection Represents the collection of selected items in a list view control.
ListViewItem.ListViewSubItemCollection Represents a collection of ListViewItem.ListViewSubItem objects stored in a ListViewItem.
Menu.MenuItemCollection Represents a collection of MenuItem objects.
OdbcParameterCollection Represents a collection of parameters relevant to an OdbcCommand as well as their respective mappings to columns in a DataSet. This class cannot be inherited.
OleDbParameterCollection Represents a collection of parameters relevant to an OleDbCommand as well as their respective mappings to columns in a DataSet.
OracleParameterCollection Represents a collection of parameters relevant to an OracleCommand as well as their respective mappings to columns in a DataSet. This class cannot be inherited.
PropertyDescriptorCollection Represents a collection of PropertyDescriptor objects.
SchemaNameCollection Contains a list of the schema names that the SchemaFilter property of a DirectoryEntries object can use.
SqlCeParameterCollection Collects all parameters relevant to a SqlCeCommand as well as their respective mappings to DataSet columns.
SqlParameterCollection Represents a collection of parameters relevant to a SqlCommand as well as their respective mappings to columns in a DataSet. This class cannot be inherited.
StatusBar.StatusBarPanelCollection Represents the collection of panels in a StatusBar control.
StringCollection Represents a collection of strings.
TabControl.TabPageCollection Contains a collection of TabPage objects.
TableCellCollection Encapsulates a collection of TableHeaderCell and TableCell objects that make up a row in a Table control. This class cannot be inherited.
TableRowCollection Encapsulates a collection of TableRow objects that represent a single row in a Table control. This class cannot be inherited.
ToolBar.ToolBarButtonCollection Encapsulates a collection of ToolBarButton controls for use by the ToolBar class.
TraceListenerCollection Provides a thread-safe list of TraceListener objects.
TreeNodeCollection Represents a collection of TreeNode objects.

Remarks

IList is a descendant of the ICollection interface and is the base interface of all lists. IList implementations fall into three categories: read-only, fixed-size, variable-size. A read-only IList cannot be modified. A fixed-size IList does not allow the addition or removal of elements, but it allows the modification of existing elements. A variable-size IList allows the addition, removal and modification of elements.

Requirements

Namespace: System.Collections

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: Mscorlib (in Mscorlib.dll)

See Also

IList Members | System.Collections Namespace | ICollection

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.