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

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.