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.
Овај код креира нови Вики страница:
СПСите ситеЦоллецтион; ситеЦоллецтион = нови СПСите("http://цонцханг-о9л8ки"); СПВеб в = ситеЦоллецтион.ОпенВеб(); в.Вебс.Адд("xyzzy", "xyzzy Title", "xyzzy description", 1033, СПВебТемплате.ВебТемплатеВИКИ, лажан, лажан); |
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 овај сајт.
</крај>
Тецхнорати Тагс: СхареПоинт