摘要:
Need to Dispose:1. SPSite oSPsite = new SPSite(http://server)2. siteCollection = new SPSite(SPContext.Current.Web.Url))3. SPSite siteCollection = siteCollections.Add("sites/myNewSiteCollection", "DOMAIN\\User", roger.lamb@litwareinc.com)4. using (SPWeb web = new SPSite(SPContext. 阅读全文