Version 23.1 (latest)

ObjectCollection Class Methods

For a list of all members of this type, see ObjectCollection members.

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