ICollection Members
.NET Framework 2.0
Defines methods to manipulate generic collections.
The following tables list the members exposed by the ICollection generic type.
| Name | Description | |
|---|---|---|
| Count | Gets the number of elements contained in the ICollection. |
| IsReadOnly | Gets a value indicating whether the ICollection is read-only. |
| Name | Description | |
|---|---|---|
| Add | Adds an item to the ICollection. |
| Clear | Removes all items from the ICollection. |
| Contains | Determines whether the ICollection contains a specific value. |
| CopyTo | Copies the elements of the ICollection to an Array, starting at a particular Array index. |
| Remove | Removes the first occurrence of a specific object from the ICollection. |