Creating SharePoint site on WSS 3.0 from C# Code  
Author Message
Pramod





PostPosted: SharePoint - Development and Programming, Creating SharePoint site on WSS 3.0 from C# Code Top

Hi all,

I want to create a Sharepoint site on WSS 3.0 version from my C# code.
Is that possible if yes how

Thanks & Regards,
Pramod


SharePoint Products and Technologies3  
 
 
andrew woodward





PostPosted: SharePoint - Development and Programming, Creating SharePoint site on WSS 3.0 from C# Code Top

Pramod,

This is covered in the WSS v3 SDK, code snippet:

SPGlobalAdmin globalAdmin = new SPGlobalAdmin();
SPSiteCollection siteCollections = globalAdmin.VirtualServers[0].Sites;

SPSite newSiteCollection = siteCollections.Add("sites/Site_Name", 
  "DOMAIN\\User", "Email_Address");
Look for the Microsoft.SharePoint.Administration Namespace.
Andrew