ESRI.ArcGIS.ADF.Web.DataSources
Initialize Method
See Also  Example
ESRI.ArcGIS.ADF.Web.DataSources Namespace > IGISResource Interface : Initialize Method


Initializes the resource.

Syntax

Visual Basic (Declaration)  
Overridable Sub Initialize() 
Visual Basic (Usage) Copy Code
Dim instance As IGISResource
 
instance.Initialize()
C#  
virtual void Initialize()

Example

The following code illustrates how a data source definition is used to read data used by the resource. The Initialize method may be called on every postback to the Page that contains the resource.
C# Copy Code
public void Initialize() 

    initialized = true;             
    string dataSourceConfig = DataSource.DataSourceDefinition; 
    ProcessData(dataSourceConfig); 

    

Remarks

At a minimum, the Initialized property should be set to true. Implementations of this method will often connect to a data source and read data when first initialized. A validate timeout may also be used when attempting to establish a connection.

Requirements

Target Platforms:Windows XP Professional, Windows Server 2003 family

See Also