Welcome to Office & SharePoint Pro Sign in | Join | Help
in Search

SUBSCRIBE to Windows IT Pro Magazine & SAVE 30%      FREE Email Newsletters Vista UPDATE, Windows IT Pro UPDATE & More

Disposing of SharePoint Services Objects

Last post 12-04-2007, 5:45 PM by yharryman. 0 replies.
Sort Posts: Previous Next
  •  12-04-2007, 5:45 PM 28982

    Disposing of SharePoint Services Objects

    When using the SharePoint Services objects make sure to dispose of them properly since some of them, such as the SPSite class and SPWeb class objects, use unmanaged code. Here is a reference for how and when to properly dispose:

    http://msdn2.microsoft.com/en-us/library/aa973248.aspx

    The common objects used are SPSite and SPWeb which should be disposed of.

    Note that the SPSite object if obtained from the GetContextSite() method does not need to be disposed of.

View as RSS news feed in XML
SPONSORED LINKS FEATURED LINKS

Order Your Fundamentals CD Today!Get up to speed quickly and learn how to uncover rich information management and deployment capabilities with this free SharePoint CD. Simplify Content Migration for SharePointEase the job of SharePoint migration and ongoing site maintenance. Michael Noel outlines your migration options in this white paper. Download today! You’ve Deployed SharePoint…Now What?This one-day free online conference delivers the technical knowledge needed to kick MOSS up a notch. In one information-packed day, independent SharePoint experts will present practical, real-world information and provide take-away, ready-to-use solutions Protecting Sharepoint with Double-Take for Windows 5.0Providing SharePoint recoverability is a two step process. Learn those steps now. Vendor protection solutions for SharePoint are incomplete at worst and unreliable at best. So what’s an Administrator to do? Read More… Maximize Your SharePoint Investment This web seminar discusses how true bi-directional replication of SharePoint content from one server to another enables branch offices to maintain access to current SharePoint content.