Sharepoint Site Collecton Anlegen
/ HomePage / Computer / Software / Programmierung / Sharepoint Site Collecton Anlegen
Anlegen einer Site Collection in MOSS 2007 bzw. WSS 3.0
1.Programmatisches Anlegen einer Site-Collection
_webApp = SPWebApplication.Lookup("http://meinserver/");
bool formDigestEnabledStatus = _webApp.FormDigestSettings.Enabled;
_webApp.FormDigestSettings.Enabled = false;
SPSite newsite = _webApp.Sites.Add(
"sites/meinprojektraum", // relative URL of new site i.e. sites/newsite
"Mein Projektraum", // Site Title
"Seitenbeschreibung bla fasel",
1033, // LCID (Laguage-Code) 1033 dt, 1031 englisch
"SPS#1", // Internal(!) Template Name
"Administrator", // Login of Site Owner
"Administrator", // Name of Site owner
"admin@hell.org" // E-Mail of Site Owner
);