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.
Hoc codice creat novum Wiki site:
SPSite siteCollection; siteCollection = novum SPSite("Http://conchang-o9l8qi"); SPWeb w = siteCollection.OpenWeb(); w.Webs.Add("Xyzzy", "Xyzzy Title", "Xyzzy description", 1033, SPWebTemplate.WebTemplateWIKI, falsum, falsum); |
Mea initialis searches defecit quia est vultus pro phrases sicut "praescripto a situ usura sharepoint obiectum exemplar" and the like.
Si quaerere enim "Webs.Add()", scies plura utilis Blog, MSDN articles and SDK documentation that go into depth on this subject. I definitely recommend hoc site.
</finem>
Technorati Tags: SharePoint