Version

ObjectBase Class

Foundation class from which many other classes within the framework are derived. ObjectBase can be considered a light-weight verion of the System.Web.UI.WebControls.WebControl class. It is used to represent various objects within the context of a larger WebControl. One of the primary responsibilities of ObjectBase is to maintain ViewState and provide methods for interacting with ViewState. The Property Get methods and Property Set method are used to simplfy and channel property access through a single mechanism. A variation of the ObjectBase class is the ControlObject. The ControlObject class provides similar functionality except that it is derived from the System.Web.UI.WebControls.WebControl base class and is used in situations where that is required.
Syntax
'Declaration
 
Public Class ObjectBase 
   Implements Infragistics.Web.UI.IClientStateInfragistics.Web.UI.IObjectBase 
Remarks
The GetValue() and SetValue() methods of this class provide access to ViewState and ClientState for derived classes to store properties that must persist between page postbacks. SetValue methods that use a string id are saved to ViewState while SetValue methods that use an integer index are saved to ClientState. Similarly, GetValue methods will retrieve from ViewState or ClientState according to the type of the first paramter: string for ViewState and integer for ClientState.
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