Loads state from hashtable managed by the DataSourceManager control.
Syntax
Visual Basic (Declaration) | |
---|
Sub LoadState( _
ByVal state As Hashtable _
) |
Parameters
- state
- Hashtable to store state in.
Example
Connection information can need to be retrieved from state to update a member variable.
C# | Copy Code |
---|
public override void LoadState(Hashtable state)
{
base.LoadState(state);
object o = State[connectionKey];
if (o != null)
{
_connection = o as Connection;
}
} |
Remarks
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also