System.Web.UI.StateManagedCollection.GetKnownTypes Method

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


protected virtual Type[] GetKnownTypes ()


An ordered array of Type objects that identify the types of System.Web.UI.IStateManager objects the collection can contain. The default implementation returns null.


The StateManagedCollection.GetKnownTypes method is called internally by the System.Web.UI.StateManagedCollection collection in its implementation of the System.Web.UI.StateManagedCollection.System.Web.UI.IStateManager.SaveViewState method. Derived collections override the StateManagedCollection.GetKnownTypes method to return an array of Type objects that represent the types the collection can contain.


Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions:
Since: .NET 2.0