KeyedCollection Members
.NET Framework 2.0
Provides the abstract base class for a collection whose keys are embedded in the values.
The following tables list the members exposed by the KeyedCollection generic type.
| Name | Description | |
|---|---|---|
| KeyedCollection | Overloaded. Initializes a new instance of the KeyedCollection class. |
(see also
Protected Properties
)
Top
| Name | Description | |
|---|---|---|
| Comparer | Gets the generic equality comparer that is used to determine equality of keys in the collection. |
| Count | Gets the number of elements actually contained in the Collection.(inherited from Collection) |
| Item | Overloaded. Gets the element with the specified key. |
| Name | Description | |
|---|---|---|
| Dictionary | Gets the lookup dictionary of the KeyedCollection. |
| Items | Gets a IList wrapper around the Collection.(inherited from Collection) |
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| Add | Adds an object to the end of the Collection. (inherited from Collection) |
| Clear | Removes all elements from the Collection. (inherited from Collection) |
| Contains | Determines whether the collection contains an element with the specified key. |
| CopyTo | Copies the entire Collection to a compatible one-dimensional Array, starting at the specified index of the target array. (inherited from Collection) |
| Equals | Overloaded. Determines whether two Object instances are equal. (inherited from Object) |
| GetEnumerator | Returns an enumerator that iterates through the Collection. (inherited from Collection) |
| 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. (inherited from Collection) |
| Insert | Inserts an element into the Collection at the specified index. (inherited from Collection) |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (inherited from Object) |
| Remove | Removes the element with the specified key from the KeyedCollection. |
| RemoveAt | Removes the element at the specified index of the Collection. (inherited from Collection) |
| ToString | Returns a String that represents the current Object. (inherited from Object) |
| Name | Description | |
|---|---|---|
| ChangeItemKey | Changes the key associated with the specified element in the lookup dictionary. |
| ClearItems | Overridden. Removes all elements from the KeyedCollection. |
| 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) |
| GetKeyForItem | When implemented in a derived class, extracts the key from the specified element. |
| InsertItem | Overloaded. Inserts an element into the KeyedCollection at the specified index. |
| MemberwiseClone | Creates a shallow copy of the current Object. (inherited from Object) |
| RemoveItem | Overridden. Removes the element at the specified index of the KeyedCollection. |
| SetItem | Overloaded. Replaces the item at the specified index with the specified item. |