Version

CreateSubObject Method (SmartWebControl)

Creates subobjects of the appropriate type.
Syntax
'Declaration
 
Protected Overridable Function CreateSubObject( _
   ByVal typeID As String _
) As IStateManager
protected virtual IStateManager CreateSubObject( 
   string typeID
)

Parameters

typeID
Corresponds to the Id of the subobject as specified in the subobject property's mutator.

Return Value

An implementation of IStateManager responsible for loading and saving the state objects used for remembering a subobject's current state. The base class implementation is provided for convenience only, and always returns null (Nothing in Visual Basic .NET).
Remarks

Inheritors implement an override of this method in their subclasses to instatiate property subobjects (compound properties) based on a supplied typeID. The typeID that is received will be the same identifier as the subclass uses to store and retrieve the subobject from the ViewState. This method is called during LoadViewState when rehydrating the Page.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also