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




Override to dispose of any GIS data source related objects, references or connections.

Syntax

Visual Basic (Declaration) 
Sub Dispose() 
Visual Basic (Usage)Copy Code
Dim instance As IGISDataSource
 
instance.Dispose()
C# 
void Dispose()

Example

When implementing the Dispose method, set the initialized property for the data source instance to false.
C#Copy Code
public void Dispose() 



  initialized = false; 



    

Remarks

When a GIS data source is managed by a resource manager control, the Dispose method is called during the Dispose event in the page lifecycle.

See Also

© 2010 All Rights Reserved.