ESRI.ArcGIS.ADF.Web.UI.WebControls.Layout
Dispose(Boolean) Method
See Also 
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 Overridable Sub Dispose( _
   ByVal disposing As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As WebPageLayout
Dim disposing As Boolean
 
instance.Dispose(disposing)
C# 
protected virtual 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.

See Also

© 2010 All Rights Reserved.