ESRI.ArcGIS.ADF.Web.UI.WebControls.Layout
Dispose(Boolean) Method
See Also  Send Feedback
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > WebPageLayout Class > Dispose Method : Dispose(Boolean) Method




disposing
Releases resources. This method only releases the ServerContext property if the server object is pooled. While working with non-pooled server objects, call ReleaseServerContext to release the ServerContext property when all work with the server object is done.

Syntax

Visual Basic (Declaration) 
Protected Overloads Overrides Sub Dispose( _
   ByVal disposing As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As WebPageLayout
Dim disposing As Boolean
 
instance.Dispose(disposing)
C# 
protected override void Dispose( 
   bool disposing
)

Parameters

disposing

Remarks

If working with a non-pooled server object in a PageLayout control, obtain the IServerContext stored in session, and call IServerContext.RemoveAll() followed by IServerContext.ReleaseContext() and remove the object from session. Usually, this has to happen at the end of a session, in the Session_End method in the Global.asax.cs file.

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.