欢迎来到天天文库
浏览记录
ID:34179684
大小:41.00 KB
页数:13页
时间:2019-03-04
《moss代码,创建站点,创建用户组,分配权限,发布主题,设定帖子权限备忘查询》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、MOSS代码,创建站点,创建用户组,分配权限,发布主题,设定帖子权限(备忘查询).........usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingMicrosoft.SharePoint;usingMicrosoft.SharePoint.Administration;usingMicrosoft.Office.Server;usingMicrosoft.Office.Server.Administration;usingMicrosoft.SharePoint
2、.Publishing;usingMicrosoft.SharePoint.Utilities;usingMicrosoft.SharePoint.Navigation;namespaceEDS.EntComm.DataProviders{ /// /// /// publicclassChannelDAL { #regionCreateEDS'channel. /// ///Author:(BruceLee) ///Cr
3、eatedTime:2008-8-25 ///Description:Createawebsite,asisEDS'channel. ///Mender: ///ModifyTime: ///ModifyDescription: /// /// /// ///
4、aram> /// /// /// /// /// /// public
5、boolCreateWebSite(SPWebspRootWeb,stringstrWebUrl,stringstrTitle,stringstrDescription,uintnLCID,stringstrWebTemplate,booluseUniquePermissions,boolbConvertIfThere) { SPFilespFileRoot=null; boolboolReturn=false; SPWebCollectionspWebCollection
6、=null; SPWebnewWeb=null; PublishingWebrootPublishingWeb=null; PublishingWebnewPublishingWeb=null; try { spRootWeb.AllowUnsafeUpdates=true; spWebCollection=spRootWeb.Webs; if(Publishin
7、gWeb.IsPublishingWeb(spRootWeb)) { rootPublishingWeb=PublishingWeb.GetPublishingWeb(spRootWeb); spFileRoot=rootPublishingWeb.DefaultPage; rootPublishingWeb.DefaultPage=spRootWeb.GetFile("Pages/default.aspx")
8、; rootPublishingWeb.Update(); }
此文档下载收益归作者所有