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.
Þessi kóði býr til nýja Wiki síðuna:
SPSite siteCollection; siteCollection = ný SPSite("http://conchang-o9l8qi"); SPWeb W = siteCollection.OpenWeb(); w.Webs.Add("xyzzy", "xyzzy Title", "xyzzy description", 1033, SPWebTemplate.WebTemplateWIKI, ósatt, ósatt); |
My initial searches failed because I was looking for phrases like "provision a web site using sharepoint object model" and the like.
Ef þú leita for "Webs.Add()", þú munt finna fjölda af mjög gagnlegur bloggfærslur, MSDN articles and SDK documentation that go into depth on this subject. I definitely recommend þetta vefsvæði.
</enda>
Gerast áskrifandi að bloggið mitt.
Technorati Tags: SharePoint