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.
ReadOnlyCollection Methods
.NET Framework 2.0
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| Contains | Determines whether an element is in the ReadOnlyCollection. |
| CopyTo | Copies the entire ReadOnlyCollection to a compatible one-dimensional Array, starting at the specified index of the target array. |
| Equals | Overloaded. Determines whether two Object instances are equal. (inherited from Object) |
| GetEnumerator | Returns an enumerator that iterates through the ReadOnlyCollection. |
| GetHashCode | Serves as a hash function for a particular type. (inherited from Object) |
| GetType | Gets the Type of the current instance. (inherited from Object) |
| IndexOf | Searches for the specified object and returns the zero-based index of the first occurrence within the entire ReadOnlyCollection. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (inherited from Object) |
| ToString | Returns a String that represents the current Object. (inherited from Object) |
| Name | Description | |
|---|---|---|
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (inherited from Object) |
| Name | Description | |
|---|---|---|
| System.Collections.Generic.ICollection<T>.Add | Adds an item to the ICollection. This implementation always throws NotSupportedException. |
| System.Collections.Generic.ICollection<T>.Clear | Removes all items from the ICollection. This implementation always throws NotSupportedException. |
| System.Collections.Generic.ICollection<T>.Remove | Removes the first occurrence of a specific object from the ICollection. This implementation always throws NotSupportedException. |
| System.Collections.Generic.IList<T>.Insert | Inserts an item to the IList at the specified index. This implementation always throws NotSupportedException. |
| System.Collections.Generic.IList<T>.RemoveAt | Removes the IList item at the specified index. This implementation always throws NotSupportedException. |
| System.Collections.ICollection.CopyTo | Copies the elements of the ICollection to an Array, starting at a particular Array index. |
| System.Collections.IEnumerable.GetEnumerator | Returns an enumerator that iterates through a collection. |
| System.Collections.IList.Add | Adds an item to the IList. This implementation always throws NotSupportedException. |
| System.Collections.IList.Clear | Removes all items from the IList. This implementation always throws NotSupportedException. |
| System.Collections.IList.Contains | Determines whether the IList contains a specific value. |
| System.Collections.IList.IndexOf | Determines the index of a specific item in the IList. |
| System.Collections.IList.Insert | Inserts an item to the IList at the specified index. This implementation always throws NotSupportedException. |
| System.Collections.IList.Remove | Removes the first occurrence of a specific object from the IList. This implementation always throws NotSupportedException. |
| System.Collections.IList.RemoveAt | Removes the IList item at the specified index. This implementation always throws NotSupportedException. |