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.

Syntax

protected virtual Type[] GetKnownTypes ()

Returns

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.

Remarks

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.

Requirements

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