简体   繁体   中英

SharePoint 2007 - How to create a site template programmatically

In my SharePoint 2007 project I have to use 3 site templates. Using these templates I create new sites programmatically. I also want to create the templates programmatically .

  1. Is that possible?
    If yes, I guess I have to use a SPSite object for creation.

  2. What should I do exactly?

您可以使用SPWeb.SaveAsTemplate方法将SharePoint网站另存为网站模板库中的网站模板解决方案。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM