System.Web.UI.StateManagedCollection: Method Members

The methods of System.Web.UI.StateManagedCollection are listed below. For a list of all members, see the StateManagedCollection Members list.

See Also: Inherited members from System.Object

Public Methods

Clear()

Removes all items from the System.Web.UI.StateManagedCollection collection.

CopyTo(Array, int)

Copies the elements of the System.Web.UI.StateManagedCollection collection to an array, starting at a particular array index.

GetEnumerator() : IEnumerator

Returns an iterator that iterates through the System.Web.UI.StateManagedCollection collection.

SetDirty()

Forces the entire System.Web.UI.StateManagedCollection collection to be serialized into view state.

Protected Methods

CreateKnownType(int) : object

When overridden in a derived class, creates an instance of a class that implements System.Web.UI.IStateManager. The type of object created is based on the specified member of the collection returned by the StateManagedCollection.GetKnownTypes method.

GetKnownTypes() : Type[]

When overridden in a derived class, gets an array of System.Web.UI.IStateManager types that the System.Web.UI.StateManagedCollection collection can contain.

OnClear()

When overridden in a derived class, performs additional work before the StateManagedCollection.Clear method removes all items from the collection.

OnClearComplete()

When overridden in a derived class, performs additional work after the StateManagedCollection.Clear method finishes removing all items from the collection.

OnInsert(int, object)

When overridden in a derived class, performs additional work before the System.Web.UI.StateManagedCollection.System.Collections.IList.Insert(int, object) or System.Web.UI.StateManagedCollection.System.Collections.IList.Add(object) method adds an item to the collection.

OnInsertComplete(int, object)

When overridden in a derived class, performs additional work after the System.Web.UI.StateManagedCollection.System.Collections.IList.Insert(int, object) or System.Web.UI.StateManagedCollection.System.Collections.IList.Add(object) method adds an item to the collection.

OnRemove(int, object)

When overridden in a derived class, performs additional work before the System.Web.UI.StateManagedCollection.System.Collections.IList.Remove(object) or System.Web.UI.StateManagedCollection.System.Collections.IList.RemoveAt(int) method removes the specified item from the collection.

OnRemoveComplete(int, object)

When overridden in a derived class, performs additional work after the System.Web.UI.StateManagedCollection.System.Collections.IList.Remove(object) or System.Web.UI.StateManagedCollection.System.Collections.IList.RemoveAt(int) method removes the specified item from the collection.

OnValidate(object)

When overridden in a derived class, validates an element of the System.Web.UI.StateManagedCollection collection.

abstract
SetDirtyObject(object)

When overridden in a derived class, instructs an object contained by the collection to record its entire state to view state, rather than recording only change information.