Version

ObjectCollection Class Members

The following tables list the members exposed by ObjectCollection.

Protected Fields
 NameDescription
Protected Field_trackingJournal  
Public Properties
 NameDescription
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  
Protected Properties
 NameDescription
Protected PropertyHasViewStateJournal  
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)
Protected PropertyViewStateJournalThe parent owner to which this object belongs.  
Public Methods
 NameDescription
Public MethodClearOverloaded. Clears the ObjectCollection of its contents and removes any associated Controls from the control tree.  
Public MethodContainsReturns true if the collection contains this item  
Public MethodGetEnumeratorReturns an enumerator that iterates through the System.Collections.CollectionBase instance. (Inherited from System.Collections.CollectionBase)
Public MethodIndexOfReturns the index of the object in the collection  
Public MethodRemoveRemoves the specified collectionObject if found in the collection.  
Public MethodRemoveAt  
Public MethodSetDirtyMarks the ViewState of every object in the collection as Dirty so that it gets stored for round tripping to the client and back.  
Protected Methods
 NameDescription
Protected MethodCreateViewStateJournal  
Protected MethodInternalAddAppends the object to the collection  
Protected MethodInternalClearOverloaded. Clears the internal collection data structure  
Protected MethodInternalMoveMoves an item from one index to another within the collection  
Protected MethodInternalRemoveOverloaded. Removes an item from the collection  
Protected MethodLoadViewState  
Protected MethodLoadViewStateItems  
Protected MethodOnClearOverridden. Clears associated Templates when the collection is cleared.  
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 MethodOnRemoveOverridden. Clears associated Template when an object is removed from the collection.  
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 MethodOnValidateOverridden. Validates that the value is not null.  
Protected MethodSaveViewState  
Protected MethodSaveViewStateItems  
See Also