次の方法で共有


SharePoint 2007 and WSS 3.0 Dispose Patterns by Example

When writing customized SharePoint code you need to be aware of the scope and context of each SPSite , SPWeb , and PublishingWeb objects lifetime. Click here for a nice job done by Roger Lamb's.