定义不同模板的网站集
The following table shows the values for the default site definitions that are included in an installation of Microsoft SharePoint Foundation.
Value
Site Definition
STS#0
Team Site
STS#1
Blank Site
STS#2
Document Workspace
MPS#0
Basic Meeting Workspace
MPS#1
Blank Meeting Workspace
MPS#2
Decision Meeting Workspace
MPS#3
Social Meeting Workspace
MPS#4
Multipage Meeting Workspace
BLOG#0
Blog
SGS#0
Basic Group Work Site
SGS#1
Blank Group Work Site
WIKI#0
Wiki
源文档 <http://msdn.microsoft.com/en-us/library/ms472488.aspx>
SPWebApplication webApp = new
SPSite("http://MySiteCollection").WebApplication;
SPSiteCollection siteCollections = webApp.Sites;
SPSite newSiteCollection =
siteCollections.Add("sites/Site_Name",
"Site_Title", "Site_Description", 1033,
"STS#0",
"DOMAIN\\User",
"Owner_User_Name",
"Owner_Email");
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。