Wednesday, September 17, 2008

Programatically creating an Application Pool

Code:

using Microsoft.SharePoint;
using Microsoft.SharePoint.Administration;
using System.ComponentModel;
using System.Collections.Generic;

SPWebApplicationBuilder wab = new SPWebApplicationBuilder(SPFarm.Local);
wab.Port = 100
SPWebApplication wa = wab.Create();
wa.Provision();

0 comments: