ReadOnlyCollection Members
.NET Framework 2.0
Provides the base class for a generic read-only collection.
The following tables list the members exposed by the ReadOnlyCollection generic type.
| Name | Description | |
|---|---|---|
| ReadOnlyCollection | Initializes a new instance of the ReadOnlyCollection class that is a read-only wrapper around the specified list. |
(see also
Protected Properties
)
Top
| Name | Description | |
|---|---|---|
| Count | Gets the number of elements contained in the ReadOnlyCollection instance. |
| Item | Gets the element at the specified index. |
(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. |
| System.Collections.Generic.ICollection<T>.IsReadOnly | Gets a value indicating whether the ICollection is read-only. |
| System.Collections.Generic.IList<T>.Item | Gets or sets the element at the specified index. |
| System.Collections.ICollection.IsSynchronized | Gets a value indicating whether access to the ICollection is synchronized (thread safe). |
| System.Collections.ICollection.SyncRoot | Gets an object that can be used to synchronize access to the ICollection. |
| System.Collections.IList.IsFixedSize | Gets a value indicating whether the IList has a fixed size. |
| System.Collections.IList.IsReadOnly | Gets a value indicating whether the IList is read-only. |
| System.Collections.IList.Item | Gets or sets the element at the specified index. |