Version

KeyedObjectCollectionBase Class Members

The following tables list the members exposed by KeyedObjectCollectionBase.

Public Properties
 NameDescription
Public PropertyAllThe collection as an array of objects  
Public PropertyCapacityGets or sets the number of elements that the System.Collections.CollectionBase can contain. (Inherited from System.Collections.CollectionBase)
Public PropertyCountGets the number of elements contained in the System.Collections.CollectionBase instance. This property cannot be overridden. (Inherited from System.Collections.CollectionBase)
Public PropertyIsReadOnlyReturns true if the collection is read-only  
Public PropertyOwnerProvides public access to the owning object of this collection  
Protected Properties
 NameDescription
Protected PropertyInnerListGets an System.Collections.ArrayList containing the list of elements in the System.Collections.CollectionBase instance. (Inherited from System.Collections.CollectionBase)
Protected PropertyListGets an System.Collections.IList containing the list of elements in the System.Collections.CollectionBase instance. (Inherited from System.Collections.CollectionBase)
Public Methods
 NameDescription
Public MethodClearRemoves all objects from the System.Collections.CollectionBase instance. This method cannot be overridden. (Inherited from System.Collections.CollectionBase)
Public MethodContainsReturns true if the collection contains this item  
Public MethodCopyToCopies the items into the array  
Public MethodExistsReturns true if an object with this key is already in the collection. Note, if key is null or a zero length string this method returns false  
Public MethodGetEnumeratorReturns an enumerator that iterates through the System.Collections.CollectionBase instance. (Inherited from System.Collections.CollectionBase)
Public MethodGetItemOverloaded. Virtual method that returns the object at the specified index  
Public MethodIndexOfOverloaded. Returns the index of the item in the collection that has the passed in key or -1 if key not found.  
Public MethodRemoveAtRemoves the element at the specified index of the System.Collections.CollectionBase instance. This method is not overridable. (Inherited from System.Collections.CollectionBase)
Public MethodValidateKeyDoesNotExistOverloaded. Throws an DuplicateNameException if the key already exists  
Protected Methods
 NameDescription
Protected MethodCreateArrayVirtual method used by the All 'get' method to create the array it returns.  
Protected MethodInternalAddAppends the object to the collection  
Protected MethodInternalClearClears the collection  
Protected MethodInternalInsertInserts an object into the collection  
Protected MethodInternalRemoveRemoves an item from the collection  
Protected MethodInternalRemoveAtRemoves an item from the collection  
Protected MethodOnClearPerforms additional custom processes when clearing the contents of the System.Collections.CollectionBase instance. (Inherited from System.Collections.CollectionBase)
Protected MethodOnClearCompletePerforms additional custom processes after clearing the contents of the System.Collections.CollectionBase instance. (Inherited from System.Collections.CollectionBase)
Protected MethodOnInsertPerforms additional custom processes before inserting a new element into the System.Collections.CollectionBase instance. (Inherited from System.Collections.CollectionBase)
Protected MethodOnInsertCompletePerforms additional custom processes after inserting a new element into the System.Collections.CollectionBase instance. (Inherited from System.Collections.CollectionBase)
Protected MethodOnRemovePerforms additional custom processes when removing an element from the System.Collections.CollectionBase instance. (Inherited from System.Collections.CollectionBase)
Protected MethodOnRemoveCompletePerforms additional custom processes after removing an element from the System.Collections.CollectionBase instance. (Inherited from System.Collections.CollectionBase)
Protected MethodOnSetPerforms additional custom processes before setting a value in the System.Collections.CollectionBase instance. (Inherited from System.Collections.CollectionBase)
Protected MethodOnSetCompletePerforms additional custom processes after setting a value in the System.Collections.CollectionBase instance. (Inherited from System.Collections.CollectionBase)
Protected MethodOnValidatePerforms additional custom processes when validating a value. (Inherited from System.Collections.CollectionBase)
See Also