This documentation is archived and is not being maintained.

CollectionBase Members

CollectionBase overview

Public Properties

public propertyCount

Supported by the .NET Compact Framework.

Gets the number of elements contained in the CollectionBase instance.

Public Methods

public methodClear

Supported by the .NET Compact Framework.

Removes all objects from the CollectionBase instance.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGetEnumerator

Supported by the .NET Compact Framework.

Returns an enumerator that can iterate through the CollectionBase instance.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodRemoveAt

Supported by the .NET Compact Framework.

Removes the element at the specified index of the CollectionBase instance.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.

Protected Constructors

protected constructorCollectionBase Constructor

Supported by the .NET Compact Framework.

Initializes a new instance of the CollectionBase class.

Protected Properties

protected propertyInnerList

Supported by the .NET Compact Framework.

Gets an ArrayList containing the list of elements in the CollectionBase instance.
protected propertyList

Supported by the .NET Compact Framework.

Gets an IList containing the list of elements in the CollectionBase instance.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.
protected methodOnClear

Supported by the .NET Compact Framework.

Performs additional custom processes when clearing the contents of the CollectionBase instance.
protected methodOnClearComplete

Supported by the .NET Compact Framework.

Performs additional custom processes after clearing the contents of the CollectionBase instance.
protected methodOnInsert

Supported by the .NET Compact Framework.

Performs additional custom processes before inserting a new element into the CollectionBase instance.
protected methodOnInsertComplete

Supported by the .NET Compact Framework.

Performs additional custom processes after inserting a new element into the CollectionBase instance.
protected methodOnRemove

Supported by the .NET Compact Framework.

Performs additional custom processes when removing an element from the CollectionBase instance.
protected methodOnRemoveComplete

Supported by the .NET Compact Framework.

Performs additional custom processes after removing an element from the CollectionBase instance.
protected methodOnSet

Supported by the .NET Compact Framework.

Performs additional custom processes before setting a value in the CollectionBase instance.
protected methodOnSetComplete

Supported by the .NET Compact Framework.

Performs additional custom processes after setting a value in the CollectionBase instance.
protected methodOnValidate

Supported by the .NET Compact Framework.

Performs additional custom processes when validating a value.

Explicit Interface Implementations

ICollection.CopyTo Copies the entire CollectionBase to a compatible one-dimensional Array, starting at the specified index of the target array.
IList.Add Adds an object to the end of the CollectionBase.
IList.Contains Determines whether the CollectionBase contains a specific element.
IList.IndexOf Searches for the specified Object and returns the zero-based index of the first occurrence within the entire CollectionBase.
IList.Insert Inserts an element into the CollectionBase at the specified index.
IList.Remove Removes the first occurrence of a specific object from the CollectionBase.
System.Collections.ICollection.IsSynchronized Gets a value indicating whether access to the CollectionBase is synchronized (thread-safe).
System.Collections.ICollection.SyncRoot Gets an object that can be used to synchronize access to the CollectionBase.
System.Collections.IList.IsFixedSize Gets a value indicating whether the CollectionBase has a fixed size.
System.Collections.IList.IsReadOnly Gets a value indicating whether the CollectionBase is read-only.
System.Collections.IList.Item Gets or sets the element at the specified index.

See Also

CollectionBase Class | System.Collections Namespace

Show: