This example will show you how to create a new website using the Provware Framework (Build 001).
- Create a reference pointing to the Provware.Framework.dll assembly.
- Add a directive to use the "Provware.Framework.Web" namespace
using Provware.Framework.Web;
- Add the following code to your C# application
WebManager wm = new WebManager();
WebServer iisServer = wm.Connect("localhost"); Site newSite = iisServer.CreateSite("My Site", ":80:www.mySite.com", "C:\\Sites\\mySite\\Content\\Web", true);
At this point, the site is now created. The "Site" object is part of the Provware Framework. You can now use that object to interact with the site.
About agramont
Conrad Agramont is the Owner and a Technology Advisor for Agramont Services, LLC. For more information on Conrad and Agramont Services, please visit: http://www.agramontservices.com/about.aspx