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

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.