Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
 ReadOnlyCollection(T) Members
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
ReadOnlyCollection<(Of <(T>)>) Members

Updated: November 2007

Provides the base class for a generic read-only collection.

The ReadOnlyCollection<(Of <(T>)>) type exposes the following members.

  NameDescription
ReadOnlyCollection<(Of <(T>)>) Initializes a new instance of the ReadOnlyCollection<(Of <(T>)>) class that is a read-only wrapper around the specified list.
Top
  NameDescription
Contains Determines whether an element is in the ReadOnlyCollection<(Of <(T>)>).
CopyTo Copies the entire ReadOnlyCollection<(Of <(T>)>) to a compatible one-dimensional Array, starting at the specified index of the target array.
Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
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.)
GetEnumerator Returns an enumerator that iterates through the ReadOnlyCollection<(Of <(T>)>).
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<(Of <(T>)>).
MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
ToString Returns a String that represents the current Object. (Inherited from Object.)
Top
  NameDescription
Aggregate Applies an accumulator function over a sequence. (Defined by Enumerable.)
All Determines whether all elements of a sequence satisfy a condition. (Defined by Enumerable.)
AnyOverloaded.
AsEnumerable Returns the input typed as IEnumerable<(Of <(T>)>). (Defined by Enumerable.)
AsQueryableOverloaded.
AverageOverloaded.
Cast Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Concat Concatenates two sequences. (Defined by Enumerable.)
ContainsOverloaded.
CountOverloaded.
DefaultIfEmptyOverloaded.
DistinctOverloaded.
ElementAt Returns the element at a specified index in a sequence. (Defined by Enumerable.)
ElementAtOrDefault Returns the element at a specified index in a sequence or a default value if the index is out of range. (Defined by Enumerable.)
ExceptOverloaded.
FirstOverloaded.
FirstOrDefaultOverloaded.
IntersectOverloaded.
LastOverloaded.
LastOrDefaultOverloaded.
LongCountOverloaded.
MaxOverloaded.
MinOverloaded.
OfType Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Reverse Inverts the order of the elements in a sequence. (Defined by Enumerable.)
SequenceEqualOverloaded.
SingleOverloaded.
SingleOrDefaultOverloaded.
Skip Bypasses a specified number of elements in a sequence and then returns the remaining elements. (Defined by Enumerable.)
SkipWhileOverloaded.
SumOverloaded.
Take Returns a specified number of contiguous elements from the start of a sequence. (Defined by Enumerable.)
TakeWhileOverloaded.
ToArray Creates an array from a IEnumerable<(Of <(T>)>). (Defined by Enumerable.)
ToList Creates a List<(Of <(T>)>) from an IEnumerable<(Of <(T>)>). (Defined by Enumerable.)
UnionOverloaded.
WhereOverloaded.
Top
  NameDescription
Count Gets the number of elements contained in the ReadOnlyCollection<(Of <(T>)>) instance.
Item Gets the element at the specified index.
Items Returns the IList<(Of <(T>)>) that the ReadOnlyCollection<(Of <(T>)>) wraps.
Top
  NameDescription
ICollection<(Of <(T>)>)..::.Add
IList..::.Add Adds an item to the IList. This implementation always throws NotSupportedException.
ICollection<(Of <(T>)>)..::.Clear
IList..::.Clear Removes all items from the IList. This implementation always throws NotSupportedException.
IList..::.Contains Determines whether the IList contains a specific value.
ICollection..::.CopyTo Copies the elements of the ICollection to an Array, starting at a particular Array index.
IEnumerable..::.GetEnumerator Returns an enumerator that iterates through a collection.
IList..::.IndexOf Determines the index of a specific item in the IList.
IList<(Of <(T>)>)..::.Insert
IList..::.Insert Inserts an item to the IList at the specified index. This implementation always throws NotSupportedException.
IList..::.IsFixedSize Gets a value indicating whether the IList has a fixed size.
ICollection<(Of <(T>)>)..::.IsReadOnly
IList..::.IsReadOnly Gets a value indicating whether the IList is read-only.
ICollection..::.IsSynchronized Gets a value indicating whether access to the ICollection is synchronized (thread safe).
IList<(Of <(T>)>)..::.Item
IList..::.Item Gets or sets the element at the specified index.
ICollection<(Of <(T>)>)..::.Remove
IList..::.Remove Removes the first occurrence of a specific object from the IList. This implementation always throws NotSupportedException.
IList<(Of <(T>)>)..::.RemoveAt
IList..::.RemoveAt Removes the IList item at the specified index. This implementation always throws NotSupportedException.
ICollection..::.SyncRoot Gets an object that can be used to synchronize access to the ICollection.
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations