ESRI.ArcGIS.ADF.Web.DataSources
SaveState Method
See Also  Example
ESRI.ArcGIS.ADF.Web.DataSources Namespace > IGISDataSource Interface : SaveState Method




Saves the state of a GIS data source.

Syntax

Visual Basic (Declaration) 
Function SaveState() As Hashtable
Visual Basic (Usage)Copy Code
Dim instance As IGISDataSource
Dim value As Hashtable
 
value = instance.SaveState()
C# 
Hashtable SaveState()

Example

Save data source properties in state for reuse.
C#Copy Code
public override Hashtable SaveState() 



    base.SaveState(); 

    if (State != null) 

        State[connectionKey] = _connection; 

  

    return State; 



    

Remarks

Implementation classes use this method to save properties or information in state for the GIS data source. When a GIS data source is managed by a resource manager control, the SaveState method is called during the SaveViewState event in the page lifecycle.

See Also

© 2010 All Rights Reserved.