ESRI.ArcGIS.ADF.Web.DataSources
LoadState Method
See Also  Example
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.

See Also

© 2010 All Rights Reserved.