Spsite.OpenWeb()
2012-09-20 11:57
288 查看
看到别人的代码中会有OpenWeb()方法,自己一般只是用rootweb或者直接allweb["网站名"]。
查了一下区别:OpenWeb()主要是为了New SPSite(URL)时URL为SubSite,这样就不需要用allweb[""]来打开子网站。
查了一下区别:OpenWeb()主要是为了New SPSite(URL)时URL为SubSite,这样就不需要用allweb[""]来打开子网站。
相关文章推荐
- Open question when load testing web site use Visual studio.
- the world's largest Open Source software development web site
- How to open a web site with the default web browser in a NEW window
- sharepoint SPSite,SPWeb,SPList
- sharepoint2010 SPSite 出错提示“找不到位于 http://xxxx 的 Web 应用程序。请确认正确键入了此 URL。”
- Get Personal SPWeb Object(Mysite Object)获取MOSS个人站点的SPWeb对象
- SP10 New SPSite 出错提示“找不到位于 http://xxxx 的 Web 应用程序。请确认正确键入了此 URL。”
- SharePoint2010 获取网站集SPSite,SPWeb对象的4种方法
- Common issue: new SPSite API call returns "The Web application at http://server:port/ could not be f
- ??Get Personal SPWeb Object(Mysite Object)获取MOSS个人站点的SPWeb对象
- Best Practices for Speeding Up Your Web Site
- 【线段树】Petrozavodsk Summer Training Camp 2016 Day 6: Warsaw U Contest, XVI Open Cup Onsite, Sunday, August 28, 2016 Problem H. Hay
- openwrt luci web解析
- 在WSS3.0和MOSS2007中排查SPSite或SPWeb的泄露问题
- Web Site/Web Application Item Template for Silverlight
- Open Source Web Design
- Windows Azure Web Site (1) 用户手册
- Warning: (vsim-3534) [FOFIR] - Failed to open file "sp_rom_8x256_sr.mif" for reading.
- Could not open ServletContext resource [/WEB-INF/applicationContext.xml]解决方法
- SP2010开发和VS2010专家"食谱"--第五章节—Web部件(3)--创建启用AJAX的Web部件