Learn best practices to follow when using Windows SharePoint Services objects to avoid retaining the objects in memory in the Microsoft .NET Framework. (29 printed pages)
Scott Harris, Microsoft Corporation
Mike Ammerlaan, Microsoft Corporation
Roger Lamb, Microsoft Corporation
Stefan Goßner, Microsoft Corporation
Published: June 2006
Updated: January 2009
Applies to: Windows SharePoint Services 3.0, Windows SharePoint Services 2.0, Microsoft Office SharePoint Server 2007, Microsoft Office SharePoint Portal Server 2003
Contents
Introduction to Using Disposable Windows SharePoint Services Objects
Finding Incorrectly Disposed Objects
Coding Techniques to Ensure Object Disposal
SPSite Objects
SPWeb Objects
Other Objects That Require Disposal
Conclusion
Additional Resources