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.
Este código crea un novo sitio web Wiki:
SPSite SiteCollection; SiteCollection = novo SPSite("Http://conchang-o9l8qi"); SPWeb w = siteCollection.OpenWeb(); w.Webs.Add("Xyzzy", "Título xyzzy", "Descrición xyzzy", 1033, SPWebTemplate.WebTemplateWIKI, teito, teito); |
Miñas pescudas iniciais fallou porque eu estaba a buscar frases como "prestación de un sitio web utilizando o SharePoint modelo de obxecto" and the like.
Se buscar para "Webs.Add()", atoparás unha serie de entradas de blog moi útiles, MSDN articles and SDK documentation that go into depth on this subject. I definitely recommend este sitio.
</final>
Technorati Tags: SharePoint