ASP.NET Pack Programmer's Guide
StateCollection(T) Members
Constructors Properties Methods Events
 


Represents a strongly-typed collection of T objects.

The following tables list the members exposed by the StateCollection(T) type.

 Public Constructors

  Name Description

StateCollection

Overloaded. Initializes a new instance of the StateCollection class.

 Public Properties

  Name Description

Count

Gets the count of items in the collection.

IsReadOnly

Gets a value that indicates if the collection is read only.

IsTrackingViewState

Gets a value that indicates whether the collection is saving changes to its view state.

Item

Returns the item at the specified index. This is the indexer of the collection.

 Public Methods

  Name Description

Add

Adds a new item to the collection.

Clear

Removes all items from the collection.

Contains

Checks if the specified item is contained within the collection.

CopyTo

Copies the elements of the collection to an array, starting from the particular Array index.

GetEnumerator

Returns an enumerator that iterates through the collection.

IndexOf

Returns the index of the first occurrence of the specified item in the collection.

Insert

Inserts the specified item into the array at the specified index.

LoadViewState

Restores view-state information from an object that was saved by the SaveViewState method

OnChanged

Raises the Changed event.

Remove

Removes the specified item from the collection.

RemoveAt

Removes the item at the specified index.

SaveViewState

Saves any view-state changes that have occurred for this collection.

TrackViewState

Causes tracking of view-state changes made to the collection so they can be stored in an object.

 Protected Methods

  Name Description

LoadItemViewState

Restores view-state information for the item that was previously saved by the SaveItemViewState method.

OnAdd

Raises the Add event.

OnAddComplete

Raises the AddComplete event.

OnClear

Raises the Clear event.

OnClearComplete

Raises the ClearComplete event.

OnCollectionChanged

Raises the CollectionChanged event.

OnInsert

Raises the Insert event.

OnInsertComplete

Raises the InsertComplete event.

OnRemove

Raises the Remove event.

OnRemoveComplete

Raises the RemoveComplete event.

OnSet

Raises the Set event.

OnSetComplete

Raises the SetComplete event.

SaveItemViewState

Saves any view-state changes that have occurred of the specified item.

TrackItemViewState

Causes tracking of view-state changes made to the specified item.

 Public Events

  Name Description

AddComplete

Declares the AddComplete event.

AddEvent

Declares the Add event.

Changed

Declares the Changed event.

ClearComplete

Declares the ClearComplete event.

ClearEvent

Declares the Clear event.

CollectionChanged

Declares the CollectionChanged event.

InsertComplete

Declares the InsertComplete event.

InsertEvent

Declares the Insert event.

RemoveComplete

Declares the RemoveComplete event.

RemoveEvent

Declares the Remove event.

SetComplete

Declares the SetComplete event.

SetEvent

Declares the Set event.

 See Also

StateCollection(T) Class
MindFusion.Scheduling Namespace