I tried searching for a little snippet code that would show how I can create a new SPWeb in a site collection. I didn’t find it as quickly or easily as I expected so I thought I’d slap together a little entry on the subject.
Гэты код стварае новы сайт Wiki:
SPSite SiteCollection; SiteCollection = новы SPSite("http://conchang-o9l8qi"); SPWeb W = siteCollection.OpenWeb(); w.Webs.Add("XYZZY", "xyzzy Title", "xyzzy description", 1033, SPWebTemplate.WebTemplateWIKI, ілжывы, ілжывы); |
My initial searches failed because I was looking for phrases like "provision a web site using sharepoint object model" and the like.
Калі вы пошук for "Webs.Add()", вы знойдзеце шэраг вельмі карысных запісы ў блогу, MSDN articles and SDK documentation that go into depth on this subject. I definitely recommend гэтага сайта.
</канец>
Technorati Тэгі: SharePoint