This documentation is archived and is not being maintained.

StateManagedCollection Members

The following tables list the members exposed by the StateManagedCollection type.

  Name Description
Protected method StateManagedCollection Initializes a new instance of the StateManagedCollection class.
Top

  Name Description
Public property Count Gets the number of elements contained in the StateManagedCollection collection.
Top

(see also Protected Methods )
  Name Description
Public method Clear Removes all items from the StateManagedCollection collection.
Public method CopyTo Copies the elements of the StateManagedCollection collection to an array, starting at a particular array index.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetEnumerator Returns an iterator that iterates through the StateManagedCollection collection.
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method SetDirty Forces the entire StateManagedCollection collection to be serialized into view state.
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Top

  Name Description
Protected method CreateKnownType When overridden in a derived class, creates an instance of a class that implements IStateManager. The type of object created is based on the specified member of the collection returned by the GetKnownTypes method.
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method GetKnownTypes When overridden in a derived class, gets an array of IStateManager types that the StateManagedCollection collection can contain.
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Protected method OnClear When overridden in a derived class, performs additional work before the Clear method removes all items from the collection.
Protected method OnClearComplete When overridden in a derived class, performs additional work after the Clear method finishes removing all items from the collection.
Protected method OnInsert When overridden in a derived class, performs additional work before the System.Collections.IList.Insert or System.Collections.IList.Add method adds an item to the collection.
Protected method OnInsertComplete When overridden in a derived class, performs additional work after the System.Collections.IList.Insert or System.Collections.IList.Add method adds an item to the collection.
Protected method OnRemove When overridden in a derived class, performs additional work before the System.Collections.IList.Remove or System.Collections.IList.RemoveAt method removes the specified item from the collection.
Protected method OnRemoveComplete When overridden in a derived class, performs additional work after the System.Collections.IList.Remove or System.Collections.IList.RemoveAt method removes the specified item from the collection.
Protected method OnValidate When overridden in a derived class, validates an element of the StateManagedCollection collection.
Protected method SetDirtyObject 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.
Top

  Name Description
Explicit interface implementation Method System.Collections.IEnumerable.GetEnumerator Returns an iterator that iterates through the StateManagedCollection collection.
Explicit interface implementation Method System.Collections.IList.Add Adds an item to the StateManagedCollection collection.
Explicit interface implementation Method System.Collections.IList.Clear Removes all items from the StateManagedCollection collection.
Explicit interface implementation Method System.Collections.IList.Contains Determines whether the StateManagedCollection collection contains a specific value.
Explicit interface implementation Method System.Collections.IList.IndexOf Determines the index of a specified item in the StateManagedCollection collection.
Explicit interface implementation Method System.Collections.IList.Insert Inserts an item into the StateManagedCollection collection at the specified index.
Explicit interface implementation Method System.Collections.IList.Remove Removes the first occurrence of the specified object from the StateManagedCollection collection.
Explicit interface implementation Method System.Collections.IList.RemoveAt Removes the IStateManager element at the specified index.
Explicit interface implementation Method System.Web.UI.IStateManager.LoadViewState Restores the previously saved view state of the StateManagedCollection collection and the IStateManager items it contains.
Explicit interface implementation Method System.Web.UI.IStateManager.SaveViewState Saves the changes to the StateManagedCollection collection and each IStateManager object it contains since the time the page was posted back to the server.
Explicit interface implementation Method System.Web.UI.IStateManager.TrackViewState Causes the StateManagedCollection collection and each of the IStateManager objects it contains to track changes to their view state so they can be persisted across requests for the same page.
Explicit interface implementation Property System.Collections.ICollection.Count Gets the number of elements contained in the StateManagedCollection collection.
Explicit interface implementation Property System.Collections.ICollection.IsSynchronized Gets a value indicating whether the StateManagedCollection collection is synchronized (thread safe). This method returns false in all cases.
Explicit interface implementation Property System.Collections.ICollection.SyncRoot Gets an object that can be used to synchronize access to the StateManagedCollection collection. This method returns a null reference (Nothing in Visual Basic) in all cases.
Explicit interface implementation Property System.Collections.IList.IsFixedSize Gets a value indicating whether the StateManagedCollection collection has a fixed size. This method returns false in all cases.
Explicit interface implementation Property System.Collections.IList.IsReadOnly Gets a value indicating whether the StateManagedCollection collection is read-only.
Explicit interface implementation Property System.Collections.IList.Item Gets the IStateManager element at the specified index.
Explicit interface implementation Property System.Web.UI.IStateManager.IsTrackingViewState Gets a value indicating whether the StateManagedCollection collection is saving changes to its view state.
Top
Show: