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.
ఈ కోడ్ ఒక కొత్త వికీ సైట్ సృష్టిస్తుంది:
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