Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
Collection(T) Class
 Collection(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
Collection<(Of <(T>)>) Members

Updated: November 2007

Provides the base class for a generic collection.

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

  NameDescription
Collection<(Of <(T>)>)Overloaded. Initializes a new instance of the Collection<(Of <(T>)>) class.
Top
  NameDescription
Add Adds an object to the end of the Collection<(Of <(T>)>).
Clear Removes all elements from the Collection<(Of <(T>)>).
ClearItems Removes all elements from the Collection<(Of <(T>)>).
Contains Determines whether an element is in the Collection<(Of <(T>)>).
CopyTo Copies the entire Collection<(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 Collection<(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 Collection<(Of <(T>)>).
Insert Inserts an element into the Collection<(Of <(T>)>) at the specified index.
InsertItem Inserts an element into the Collection<(Of <(T>)>) at the specified index.
MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Remove Removes the first occurrence of a specific object from the Collection<(Of <(T>)>).
RemoveAt Removes the element at the specified index of the Collection<(Of <(T>)>).
RemoveItem Removes the element at the specified index of the Collection<(Of <(T>)>).
SetItem Replaces the element at the specified index.
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 actually contained in the Collection<(Of <(T>)>).
Item Gets or sets the element at the specified index.
Items Gets a IList<(Of <(T>)>) wrapper around the Collection<(Of <(T>)>).
Top
  NameDescription
IList..::.Add Adds an item to the IList.
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..::.Insert Inserts an item into the IList at the specified index.
IList..::.IsFixedSize Gets a value indicating whether the IList has a fixed size.
ICollection<(Of <(T>)>)..::.IsReadOnly Gets a value indicating whether the ICollection<(Of <(T>)>) is read-only.
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..::.Item Gets or sets the element at the specified index.
IList..::.Remove Removes the first occurrence of a specific object from the IList.
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