To get this dll you will need to install the "Infrastructure Update for Windows SharePoint Services (KB951695)"
Download 32-bit / 64-bit
Make sure you read this before installing this update:
http://technet.microsoft.com/en-us/library/cc288269.aspx
In this example you provision a new SPWebApplication object on multiple front-ends.
static void Main(string[] args)
{
SPWebApplicationBuilder appBuilder = new SPWebApplicationBuilder(SPFarm.Local);
int port = 80;
appBuilder.Port = port;
SPWebApplication webApplication = appBuilder.Create();
//provision the web application on the local server
//webApplication.Provision();
//provision the web application on all front-ends
webApplication.ProvisionGlobal();
SPSite siteCollection = webApplication.Sites.Add("/", "domain\\ahavivi", "havivi@gmail.com");
siteCollection.Close();
}
0 Komentar