System.Web.UI.StateManagedCollection Members

The members of System.Web.UI.StateManagedCollection are listed below.

See Also: Inherited members from System.Object

Protected Constructors

Initializes a new instance of the System.Web.UI.StateManagedCollection class.

Public Properties

[read-only]
Countint.

Gets the number of elements contained in the System.Web.UI.StateManagedCollection collection.

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.

Explicitly Implemented Interface Members

IList.Add

Adds an item to the System.Web.UI.StateManagedCollection collection.

IList.Clear

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

IList.Contains

Determines whether the System.Web.UI.StateManagedCollection collection contains a specific value.

[read-only]
ICollection.Countint.

Gets the number of elements contained in the System.Web.UI.StateManagedCollection collection.

IEnumerable.GetEnumerator

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

IList.IndexOf

Determines the index of a specified item in the System.Web.UI.StateManagedCollection collection.

IList.Insert

Inserts an item into the System.Web.UI.StateManagedCollection collection at the specified index.

[read-only]
IList.IsFixedSizebool.

Gets a value indicating whether the System.Web.UI.StateManagedCollection collection has a fixed size. This method returns false in all cases.

[read-only]
IList.IsReadOnlybool.

Gets a value indicating whether the System.Web.UI.StateManagedCollection collection is read-only.

[read-only]
ICollection.IsSynchronizedbool.

Gets a value indicating whether the System.Web.UI.StateManagedCollection collection is synchronized (thread safe). This method returns false in all cases.

[read-only]
System.Web.UI.IStateManager.IsTrackingViewStatebool.

Gets a value indicating whether the System.Web.UI.StateManagedCollection collection is saving changes to its view state.

IList.Itemobject. Documentation for this section has not yet been entered.
System.Web.UI.IStateManager.LoadViewState

Restores the previously saved view state of the System.Web.UI.StateManagedCollection collection and the System.Web.UI.IStateManager items it contains.

IList.Remove

Removes the first occurrence of the specified object from the System.Web.UI.StateManagedCollection collection.

IList.RemoveAt

Removes the System.Web.UI.IStateManager element at the specified index.

System.Web.UI.IStateManager.SaveViewState

Saves the changes to the System.Web.UI.StateManagedCollection collection and each System.Web.UI.IStateManager object it contains since the time the page was posted back to the server.

[read-only]
ICollection.SyncRootobject.

Gets an object that can be used to synchronize access to the System.Web.UI.StateManagedCollection collection. This method returns null in all cases.

System.Web.UI.IStateManager.TrackViewState

Causes the System.Web.UI.StateManagedCollection collection and each of the System.Web.UI.IStateManager objects it contains to track changes to their view state so they can be persisted across requests for the same page.