ESRI.ArcGIS.ADF.Web.DataSources
LoadState Method
See Also  Example Send Feedback
ESRI.ArcGIS.ADF.Web.DataSources Namespace > IGISDataSource Interface : LoadState Method




state
Hashtable to store state in.
Loads state from hashtable managed by the DataSourceManager control.

Syntax

Visual Basic (Declaration) 
Sub LoadState( _
   ByVal state As Hashtable _
) 
Visual Basic (Usage)Copy Code
Dim instance As IGISDataSource
Dim state As Hashtable
 
instance.LoadState(state)
C# 
void LoadState( 
   Hashtable state
)

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

Implementation classes use this method to retrieve properties or information maintained in state for the GIS data source. When a GIS data source is managed by a resource manager control, the LoadState method is called when a resource that uses the data source is created.

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

© 2011 All Rights Reserved.