摘要: 前些天修改一个安装程序,需要用到操作IIS 的site,可以使用c#提供的DirectoryEntry类来操作。  MSDN上有DirectoryEntry的说明,但没有找到提供的例子。我在网上找了下,在这里列出我用的几个常用的操作。  public static int CreateWebSite(string webSiteName, string pathToRoot,string serv... 阅读全文
posted @ 2008-12-09 13:00 saden hu 阅读(574) 评论(5) 推荐(0) 编辑
摘要: 微软 提供的mcp samples 链接地址其中的客户端代码的部分代码由CodeDom生成。 阅读全文
posted @ 2008-12-09 12:51 saden hu 阅读(172) 评论(0) 推荐(0) 编辑