Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

StateManagedCollection Methods

(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.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.